aboutsummaryrefslogtreecommitdiffstats
path: root/dist/windows
diff options
context:
space:
mode:
Diffstat (limited to 'dist/windows')
-rw-r--r--dist/windows/InstallerTemplate.ps14
1 files 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