Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

ERROR: Specified cast is not valid #3

Closed
jaganz opened this issue Aug 29, 2018 · 10 comments
Closed

ERROR: Specified cast is not valid #3

jaganz opened this issue Aug 29, 2018 · 10 comments
Assignees
Labels

Comments

@jaganz
Copy link

jaganz commented Aug 29, 2018

Installation:

C:\WINDOWS\system32>choco install sql-server-management-studio -y
Chocolatey v0.10.11
Installing the following packages:
sql-server-management-studio
By installing you accept licenses for the packages.
Progress: Downloading sql-server-management-studio 14.0.17277.0... 100%

sql-server-management-studio v14.0.17277.0 [Approved]
sql-server-management-studio package files install completed. Performing other installation steps.
ERROR: Specified cast is not valid.
The install of sql-server-management-studio was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\sql-server-management-studio\tools\chocolateyinstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - sql-server-management-studio (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\sql-server-management-studio\tools\chocolateyinstall.ps1'.
 See log for details.

Logs: attached
chocolatey.log

@flcdrg flcdrg self-assigned this Aug 29, 2018
@flcdrg flcdrg added the bug label Aug 29, 2018
@flcdrg
Copy link
Owner

flcdrg commented Aug 29, 2018

Thanks for the info and log. I wonder if it's related to the restart detection that I added recently? I'll do some testing to see if I can reproduce the problem.

@jaganz
Copy link
Author

jaganz commented Aug 29, 2018

I have found something similar in this issue: dtgm/chocolatey-packages#167 . Hope this can help you

@flcdrg
Copy link
Owner

flcdrg commented Aug 29, 2018

Also realised I need to update the packageSourceUrl to point to the new Git repository!

@flcdrg
Copy link
Owner

flcdrg commented Aug 29, 2018

@jaganz if you run the PowerShell script mentioned in that related issue, what output do you get?

@jaganz
Copy link
Author

jaganz commented Aug 29, 2018

WARNING: Found bad key:
Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-nb-base-
8.2.0.0.201609300101

@jaganz
Copy link
Author

jaganz commented Aug 29, 2018

The workaround seems to be

As you may have noticed, this bug affects many packages on chocolatey.org and most all install packages I maintain. This will be slowly snuffed out as old packages get updated. For now, the workaround is to remove the offending application, or, if you need the offending software installed, fix the bad registry key.

i'll try and give u feedback

@flcdrg
Copy link
Owner

flcdrg commented Aug 29, 2018

Sounds good. Looks like that key is related to Netbeans (according to Google)

@jaganz jaganz closed this as completed Aug 29, 2018
@jaganz
Copy link
Author

jaganz commented Aug 29, 2018

Afeter deleted the bad registry entry (attached, I think that are the parameters for netbeans uninstaller) everythings works fine. thanks!

C:\WINDOWS\system32>choco install sql-server-management-studio -y
Chocolatey v0.10.11
Installing the following packages:
sql-server-management-studio
By installing you accept licenses for the packages.
Progress: Downloading sql-server-management-studio 14.0.17277.0... 100%
sql-server-management-studio v14.0.17277.0 [Approved]
sql-server-management-studio package files install completed. Performing other installation steps.
Downloading SQL Server Management Studio
from 'https://download.microsoft.com/download/0/5/B/05B2AF8F-906F-4C57-A58E-5780F64F9D62/SSMS-Setup-ENU.exe'
Progress: 100% - Completed download of C:\Users\ilari\AppData\Local\Temp\chocolatey\sql-server-management-studio\14.0.17277.0\SSMS-Setup-ENU.exe (806.28 MB).
Download of SSMS-Setup-ENU.exe (806.28 MB) completed.
Hashes match.
Installing SQL Server Management Studio...
SQL Server Management Studio has been installed.
sql-server-management-studio may be able to be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv).
The install of sql-server-management-studio was successful.
Software installed as 'EXE', install location is likely default.

Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Registry zipped nbi-nb-base-8.2.0.0.201609300101.reg.zip

@flcdrg
Copy link
Owner

flcdrg commented Aug 29, 2018

No worries!

@flcdrg
Copy link
Owner

flcdrg commented Sep 4, 2018

This issue was moved to flcdrg/au-packages#37

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants