From 3f9e97a4556b3d104f914b4fc054283905019885 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Wed, 6 Jan 2016 17:41:03 -0600 Subject: [PATCH] (GH-305) Assume NSIS if you've found uninst.exe If you haven't found anything else, assume the installer type is NSIS. --- .../infrastructure.app/services/RegistryService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/chocolatey/infrastructure.app/services/RegistryService.cs b/src/chocolatey/infrastructure.app/services/RegistryService.cs index fc19d2ad99..226685633d 100644 --- a/src/chocolatey/infrastructure.app/services/RegistryService.cs +++ b/src/chocolatey/infrastructure.app/services/RegistryService.cs @@ -191,6 +191,12 @@ public void evaluate_keys(RegistryKey key, Registry snapshot) appKey.InstallerType = InstallerType.ServicePack; } + // assume NSIS if we still don't know and we find uninst.exe + if (appKey.InstallerType == InstallerType.Unknown && appKey.UninstallString.to_lower().Contains("uninst.exe")) + { + appKey.InstallerType = InstallerType.Nsis; + } + if (appKey.InstallerType == InstallerType.Unknown && appKey.HasQuietUninstall) { appKey.InstallerType = InstallerType.Custom;