I'm currently receiving this error when installing Java SE Runtime Environment (jre8
), updating used to work fine:
Searching if new version exists...
ERROR: Specified cast is not valid.
The install of jre8 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\jre8\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
- jre8 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\jre8\tools\chocolateyInstall.ps1'.
See log for details.
chocolatey.log (I can't paste here because of the 30 000 character length limit, I've deleted the dates)
Best Answer
I just had this problem. I did:
and it choked on
HKLM:\software\microsoft\windows\currentversion\uninstall\nbi-nb-base-8.2.0.0.201609300101
, which is for Netbeans 8.2. I see in regedit that NoModify has "(invalid DWORD (32-bit) value)".get-itemproperty -erroraction continue
has no effect.EDIT: The Netbeans people are finally fixing this currently. https://issues.apache.org/jira/browse/NETBEANS-2523