From 4c46138987a162358305c4dd2bd7126b85fb7fd4 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Tue, 9 Aug 2016 18:36:17 -0500 Subject: [PATCH] (GH-840) Set TMP to cacheLocation as well --- .../infrastructure.app/configuration/EnvironmentSettings.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chocolatey/infrastructure.app/configuration/EnvironmentSettings.cs b/src/chocolatey/infrastructure.app/configuration/EnvironmentSettings.cs index b9b708c1ee..f73c8d6ba7 100644 --- a/src/chocolatey/infrastructure.app/configuration/EnvironmentSettings.cs +++ b/src/chocolatey/infrastructure.app/configuration/EnvironmentSettings.cs @@ -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");