Created
March 7, 2016 07:39
-
-
Save ForNeVeR/5dfd655007f9b0f09c60 to your computer and use it in GitHub Desktop.
Search registry errors to fix them manually.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$local_key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' | |
$machine_key = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*' | |
$machine_key6432 = 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*' | |
$items = Get-ChildItem @($local_key, $machine_key, $machine_key6432) | |
$ErrorActionPreference = 'Stop' | |
foreach ($item in $items) { | |
Write-Output $item.PSPath | |
$null = Get-ItemProperty $item.PSPath | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cross-posting the problem definition here for clarity.
From copyq package (the same problem has been reported to happen with pandoc package also, but it possibly could happen just anywhere):
Here's how I diagnosed the problem. First of all, execute this script in PowerShell console.
It will print some registry paths and an error. The latest registry path printed is the source of the error. In my case it was
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nbi-glassfish-mod-3.1.2.23.2
Go to the regedit and check that key. I've found that it had "Invalid DWORD value" in its
NoModify
key; no idea how did it get corrupted there. I've deleted thisNoModify
key and after that everything get back to normal.