-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keepass-plugin-favicon: "Specified cast is not valid." #167
Comments
Caused by a bad registry key created by another program. Please copy paste the following code and let me know which program it is. $hkcu = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*'
$hklm = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*'
$hklmWow = 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*'
[array]$keys = Get-ChildItem -Path @($hkcu, $hklm, $hklmWow) -ea SilentlyContinue
[bool]$success = $FALSE
[int]$maxAttempts = 10
for ([int]$attempt = 1; $attempt -le $maxAttempts; $attempt++) {
try {[array]$foundKey = Get-ItemProperty -Path $keys.PsPath -ea SilentlyContinue | ?{$_.DisplayName -like "*"}; $success = $TRUE;}
catch {
foreach ($key in $keys){
try{Get-ItemProperty $key.PsPath > $null}
catch{$badKey = $key.PsPath}
}
Write-Warning "Found bad key: $badKey"
[array]$keys = $keys | ?{$badKey -NotContains $_.PsPath}
}
if ($success) {break;}
} details about why in #92 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. |
Hello, sorry for the late anwser. The given script returns the following „bad“ registry key:
What do you think I should do next? Sincerely yours
On Sat, Jun 18, 2016 at 11:01 PM, dtgm [email protected] wrote:
|
@gep13 , this plugin isn't mainained anymore (last update 2016) |
Whenever I try to install the keepass-plugin-favicon package on a Windows 10 Pro system the installation aborts with the following error:
The text was updated successfully, but these errors were encountered: