From 96f8d4c82c7b3863084c241fe556f5adef481017 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Mon, 27 Jul 2015 14:09:33 -0500 Subject: [PATCH] (GH-366) Add uninstaller keys back in Accidentally removed a little too much and pulled the keys that will be used to search against. --- .../templates/ChocolateyUninstallTemplate.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs b/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs index 7693f633d3..620b87fa44 100644 --- a/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs +++ b/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs @@ -41,6 +41,9 @@ public class ChocolateyUninstallTemplate } $uninstalled = $false +$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\*' Get-ItemProperty -Path @($machine_key6432,$machine_key, $local_key) ` -ErrorAction SilentlyContinue `