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