Skip to content

Commit

Permalink
(chocolateyGH-305) Assume NSIS if you've found uninst.exe
Browse files Browse the repository at this point in the history
If you haven't found anything else, assume the installer type is NSIS.
  • Loading branch information
ferventcoder committed Jan 6, 2016
1 parent 5fe4880 commit 3f9e97a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/chocolatey/infrastructure.app/services/RegistryService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3f9e97a

Please sign in to comment.