Skip to content

Commit

Permalink
Use Expand-Archive instead of ZipFile class.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Mar 20, 2021
1 parent 2d9d4e9 commit 4288bee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Server/wwwroot/Downloads/Windows-Upgrade.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ try {
Invoke-WebRequest -Uri "https://github.com/lucent-sea/Remotely/releases/latest/download/Remotely_Server_Win-x64.zip" -OutFile "$env:TEMP\Remotely_Server_Win-x64.zip"
$ProgressPreference = "Continue"
Wrap-Host "Extracting server files..."
[System.Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") | Out-Null
[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:TEMP\Remotely_Server_Win-x64.zip", $SitePath)
Expand-Archive -Path "$env:TEMP\Remotely_Server_Win-x64.zip" -DestinationPath $SitePath -Force
}
catch {
Wrap-Host
Expand Down

0 comments on commit 4288bee

Please sign in to comment.