From 09f68d4c2b6d0709eeeb0607a0f02da2e27e3416 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Sat, 16 May 2015 15:17:52 -0500 Subject: [PATCH] (GH-281) Fix notsilent switch NotSilent option was not working appropriately since it wasn't checked and wasn't passing overriding arguments to the installer. This fixes that behavior to allow the notsilent switch to work again. --- .../infrastructure.app/services/PowershellService.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/chocolatey/infrastructure.app/services/PowershellService.cs b/src/chocolatey/infrastructure.app/services/PowershellService.cs index 80d5f10246..223cc6fd4c 100644 --- a/src/chocolatey/infrastructure.app/services/PowershellService.cs +++ b/src/chocolatey/infrastructure.app/services/PowershellService.cs @@ -190,12 +190,10 @@ public bool run_action(ChocolateyConfiguration configuration, PackageResult pack Environment.SetEnvironmentVariable("TEMP", configuration.CacheLocation); - //verify how not silent is passed - //if (configuration.NotSilent) - //{ - // Environment.SetEnvironmentVariable("installerArguments", " "); - // Environment.SetEnvironmentVariable("chocolateyInstallOverride", "true"); - //} + if (configuration.NotSilent) + { + Environment.SetEnvironmentVariable("chocolateyInstallOverride", "true"); + } if (configuration.Debug) { Environment.SetEnvironmentVariable("ChocolateyEnvironmentDebug", "true");