From f09e5b10cb8a299ee44e6218c3db24a85f718433 Mon Sep 17 00:00:00 2001 From: Martin Cizmar Date: Thu, 25 Oct 2018 00:15:24 +0200 Subject: windows install script fix --- dist/windows/InstallerTemplate.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/windows/InstallerTemplate.ps1 b/dist/windows/InstallerTemplate.ps1 index 54c1894a1..6e2fac3c3 100644 --- a/dist/windows/InstallerTemplate.ps1 +++ b/dist/windows/InstallerTemplate.ps1 @@ -205,13 +205,13 @@ if ($Install) New-Item -ItemType Directory -Path "$InstallPath" -ErrorAction SilentlyContinue | Out-Null # writing ZIP file to disk - $TempFilePath = [System.IO.Path]::GetTempFileName() + $TempFilePath = [System.IO.Path]::GetTempFileName().TrimEnd("tmp") + "zip" Write-Host " Writing temporary ZIP file: $TempFilePath" $CompressedFileContentAsBytes = [System.Convert]::FromBase64String($CompressedFileContentInBase64) [System.IO.File]::WriteAllBytes("$TempFilePath", $CompressedFileContentAsBytes) Write-Host " Extracting ZIP file to: $InstallPath" - Expand-Archive "$TempFilePath" -OutputPath $InstallPath -Force -ShowProgress + Expand-Archive "$TempFilePath" -DestinationPath $InstallPath -Force Remove-Item $TempFilePath -- cgit v1.2.3 From e4188e27b313e8e8accc4988944e04db2e9ae9b5 Mon Sep 17 00:00:00 2001 From: Martin Cizmar Date: Sun, 28 Oct 2018 23:07:36 +0100 Subject: change to FQN for Archive-Expand command --- dist/windows/InstallerTemplate.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/windows/InstallerTemplate.ps1 b/dist/windows/InstallerTemplate.ps1 index 6e2fac3c3..f04a89ad4 100644 --- a/dist/windows/InstallerTemplate.ps1 +++ b/dist/windows/InstallerTemplate.ps1 @@ -211,7 +211,7 @@ if ($Install) [System.IO.File]::WriteAllBytes("$TempFilePath", $CompressedFileContentAsBytes) Write-Host " Extracting ZIP file to: $InstallPath" - Expand-Archive "$TempFilePath" -DestinationPath $InstallPath -Force + Microsoft.PowerShell.Archive\Expand-Archive "$TempFilePath" -DestinationPath $InstallPath -Force Remove-Item $TempFilePath -- cgit v1.2.3