using -Force flag on Expand-Archive to use install as updater

This commit is contained in:
Baipyrus 2024-09-06 12:43:52 +02:00
parent e06b22622e
commit 919b674d56

View File

@ -48,7 +48,7 @@ if ($isRelease)
Invoke-RestMethod "https://github.com/Baipyrus/ProxySwitcher/releases/latest/download/ProxySwitcher.zip" -OutFile $tmpPRSWzip Invoke-RestMethod "https://github.com/Baipyrus/ProxySwitcher/releases/latest/download/ProxySwitcher.zip" -OutFile $tmpPRSWzip
# Expand Archive to program directory # Expand Archive to program directory
Expand-Archive $tmpPRSWzip -DestinationPath $programPath Expand-Archive $tmpPRSWzip -DestinationPath $programPath -Force
} }
# Add program to PATH for cli application # Add program to PATH for cli application