mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-25 12:11:46 +00:00
Merge pull request #17 from Baipyrus/fix-path-variable
Wrong Program Variable Used For Path In Install Script
This commit is contained in:
commit
f097703beb
@ -56,8 +56,10 @@ if ($isRelease)
|
||||
|
||||
# Add program to PATH for cli application
|
||||
$userpath = [System.Environment]::GetEnvironmentVariable("PATH", "User")
|
||||
$userpath = $userpath + ";$programDir"
|
||||
if ($userpath.Split(";") -notcontains $programPath) {
|
||||
$userpath = $userpath + ";$programPath"
|
||||
[System.Environment]::SetEnvironmentVariable("PATH", $userpath, "User")
|
||||
}
|
||||
|
||||
# Create Startmenu Shortcut
|
||||
Write-Host "Creating shortcuts for easy access..." -ForegroundColor Cyan
|
||||
|
Loading…
Reference in New Issue
Block a user