From 06d63a862e900dcc6ee6c2335120cc8cb939698f Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 7 Jun 2020 03:57:23 +0200 Subject: [PATCH] Fully qualify Expand-Archive (#2066) If a user has the Powershell Community Extensions installed, it comes with another command Expand-Archive that doesn't have a DestinationPath argument, causing an error. --- install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index 94bf3832..2c537f9a 100644 --- a/install.ps1 +++ b/install.ps1 @@ -57,7 +57,7 @@ function download { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 (New-Object Net.WebClient).DownloadFile($url, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("$temp")) if ($?) { - (Expand-Archive -Path $temp -DestinationPath .); (Remove-Item $temp) + (Microsoft.PowerShell.Archive\Expand-Archive -Path $temp -DestinationPath .); (Remove-Item $temp) } else { $binary_error="Failed to download with powershell" }