aboutsummaryrefslogtreecommitdiff
path: root/scripts/cleanEnvironmentHelper.ps1
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-07-02 18:13:44 +0800
committermyd7349 <myd7349@gmail.com>2019-07-02 18:13:44 +0800
commit086c72777369e9a8db0a58e4ad43360b3b613c78 (patch)
tree240047d021f2e08af14d58b8a6a5db4b6f0fda60 /scripts/cleanEnvironmentHelper.ps1
parent3efdcef0e62aa6df7ff9088c001cff8d47304386 (diff)
parentf15d52becf620a0b234b4b7735579b5415f8d7b7 (diff)
downloadvcpkg-086c72777369e9a8db0a58e4ad43360b3b613c78.tar.gz
vcpkg-086c72777369e9a8db0a58e4ad43360b3b613c78.zip
Merge branch 'master' into rdkafka-init
Diffstat (limited to 'scripts/cleanEnvironmentHelper.ps1')
-rw-r--r--scripts/cleanEnvironmentHelper.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cleanEnvironmentHelper.ps1 b/scripts/cleanEnvironmentHelper.ps1
index a3792ecd3..fa5fe869d 100644
--- a/scripts/cleanEnvironmentHelper.ps1
+++ b/scripts/cleanEnvironmentHelper.ps1
@@ -1,6 +1,6 @@
# Capture environment variables for the System and User. Also add some special/built-in variables.
# These will be used to synthesize a clean environment
-$specialEnvironmentMap = @{ "SystemDrive"=$env:SystemDrive; "SystemRoot"=$env:SystemRoot; "UserProfile"=$env:UserProfile } # These are built-in and not set in the registry
+$specialEnvironmentMap = @{ "SystemDrive"=$env:SystemDrive; "SystemRoot"=$env:SystemRoot; "UserProfile"=$env:UserProfile; "TMP"=$env:TMP } # These are built-in and not set in the registry
$machineEnvironmentMap = [Environment]::GetEnvironmentVariables('Machine') # HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
$userEnvironmentMap = [Environment]::GetEnvironmentVariables('User') # HKEY_CURRENT_USER\Environment