mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-25 12:11:46 +00:00
bugfix: allow PWSH for shortcut
This commit is contained in:
parent
47541d9405
commit
5b7320e057
@ -1,7 +1,14 @@
|
||||
$startupDir = (Get-Location).Path
|
||||
$destinationDir = "$env:LOCALAPPDATA\Programs"
|
||||
$startmenuDir = "$env:APPDATA\Microsoft\Windows\Start Menu\Programs"
|
||||
$powershellPath = "$PSHOME\powershell.exe"
|
||||
|
||||
Write-Host "Detecting Powershell Executable..." -ForegroundColor Cyan
|
||||
$powershellPath = "$PSHOME"
|
||||
if (Test-Path "$powershellPath\pwsh.exe")
|
||||
{ $powershellPath = "$powershellPath\pwsh.exe"
|
||||
} else
|
||||
{ $powershellPath = "$powershellPath\powershell.exe"
|
||||
}
|
||||
|
||||
# Create program directory and relocate
|
||||
Write-Host "Creating program directory in Userprofile..." -ForegroundColor Cyan
|
||||
|
Loading…
Reference in New Issue
Block a user