Skip to content

Commit

Permalink
(GH-281) Fix notsilent switch
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ferventcoder committed May 16, 2015
1 parent 9c1bfe1 commit 09f68d4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/chocolatey/infrastructure.app/services/PowershellService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 09f68d4

Please sign in to comment.