-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnvVarsSetup.ps1
15 lines (12 loc) · 949 Bytes
/
EnvVarsSetup.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$currentLoc = Get-Location;
$newPath = "$($currentLoc)\psyq\bin;$($currentLoc)\emu"
$oldPath = [Environment]::GetEnvironmentVariable('path', 'User');
[Environment]::SetEnvironmentVariable('path', "$($newPath);$($oldPath)",'User');
[Environment]::SetEnvironmentVariable('LIBRARY_PATH', "$($currentLoc)\psyq\lib",'User');
[Environment]::SetEnvironmentVariable('COMPILER_PATH', "$($currentLoc)\psyq\bin",'User');
[Environment]::SetEnvironmentVariable('C_PLUS_INCLUDE_PATH', "$($currentLoc)\psyq\include",'User');
[Environment]::SetEnvironmentVariable('C_INCLUDE_PATH', "$($currentLoc)\psyq\include",'User');
[Environment]::SetEnvironmentVariable('C_LIBRARY_PATH', "$($currentLoc)\psyq\lib",'User');
[Environment]::SetEnvironmentVariable('PSYQ_PATH', "$($currentLoc)\psyq\bin",'User');
[Environment]::SetEnvironmentVariable('PSX_PATH', "$($currentLoc)\psyq\bin",'User');
[Environment]::SetEnvironmentVariable('PSXDEV_PATH', "$($currentLoc)",'User');