From 53608dadbd99cafd35d7c84beaf1a85f2332319f Mon Sep 17 00:00:00 2001 From: David Gardiner Date: Thu, 21 Mar 2019 11:11:39 -0700 Subject: [PATCH] Ensure chocolateyForceX86 is only set when requested - Fixes #1772 --- src/chocolatey/infrastructure.app/services/PowershellService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chocolatey/infrastructure.app/services/PowershellService.cs b/src/chocolatey/infrastructure.app/services/PowershellService.cs index d21726a6f5..8ff810deaf 100644 --- a/src/chocolatey/infrastructure.app/services/PowershellService.cs +++ b/src/chocolatey/infrastructure.app/services/PowershellService.cs @@ -391,6 +391,7 @@ public void prepare_powershell_environment(IPackage package, ChocolateyConfigura Environment.SetEnvironmentVariable("chocolateyChecksumType32", null); Environment.SetEnvironmentVariable("chocolateyChecksum64", null); Environment.SetEnvironmentVariable("chocolateyChecksumType64", null); + Environment.SetEnvironmentVariable("chocolateyForceX86", null); // we only want to pass the following args to packages that would apply. // like choco install git --params '' should pass those params to git.install,