From c1ff5e180ece80b52e086df88aed26b6ee221a88 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Thu, 4 Jun 2015 10:14:07 -0500 Subject: [PATCH] (GH-296) add 1605 for valid MSI exit code --- .../infrastructure.app/templates/ChocolateyUninstallTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs b/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs index 6ed25ccb55..6ad4c2a71b 100644 --- a/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs +++ b/src/chocolatey/infrastructure.app/templates/ChocolateyUninstallTemplate.cs @@ -65,7 +65,7 @@ public class ChocolateyUninstallTemplate # Uninstall-ChocolateyPackage msiargs (facepalm). $silentArgs = ""$msiProductCodeGuid /qn /norestart"" # https://msdn.microsoft.com/en-us/library/aa376931(v=vs.85).aspx -$validExitCodes = @(0, 3010, 1614, 1641) +$validExitCodes = @(0, 3010, 1605, 1614, 1641) # Don't pass anything for file, it is ignored for msi (facepalm number 2) # Alternatively if you need to pass a path to an msi, determine that and use # it instead of $msiProductCodeGuid in silentArgs, still very first