Skip to content

Commit

Permalink
(GH-840) Set TMP to cacheLocation as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Aug 9, 2016
1 parent 7f4db71 commit 4c46138
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public static void set_environment_variables(ChocolateyConfiguration config)
Environment.SetEnvironmentVariable("IS_ADMIN", config.Information.IsUserAdministrator ? "true" : "false");
Environment.SetEnvironmentVariable("IS_PROCESSELEVATED", config.Information.IsProcessElevated ? "true" : "false");
Environment.SetEnvironmentVariable("TEMP", config.CacheLocation);
Environment.SetEnvironmentVariable("TMP", config.CacheLocation);

if (config.Debug) Environment.SetEnvironmentVariable("ChocolateyEnvironmentDebug", "true");
if (config.Verbose) Environment.SetEnvironmentVariable("ChocolateyEnvironmentVerbose", "true");
Expand Down

0 comments on commit 4c46138

Please sign in to comment.