aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorMartin Cizmar <betacheer@gmail.com>2018-10-25 00:15:24 +0200
committerMartin Cizmar <betacheer@gmail.com>2018-10-25 00:15:24 +0200
commitf09e5b10cb8a299ee44e6218c3db24a85f718433 (patch)
tree7fbdcb0e14234bf1fd48654dd999827f261eb688 /dist
parent278677dd1bb3c9fa2b7f9950d13afaf04ef4059b (diff)
downloadghdl-f09e5b10cb8a299ee44e6218c3db24a85f718433.tar.gz
ghdl-f09e5b10cb8a299ee44e6218c3db24a85f718433.tar.bz2
ghdl-f09e5b10cb8a299ee44e6218c3db24a85f718433.zip
windows install script fix
Diffstat (limited to 'dist')
-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