diff options
author | Martin Cizmar <betacheer@gmail.com> | 2018-10-25 00:15:24 +0200 |
---|---|---|
committer | Martin Cizmar <betacheer@gmail.com> | 2018-10-25 00:15:24 +0200 |
commit | f09e5b10cb8a299ee44e6218c3db24a85f718433 (patch) | |
tree | 7fbdcb0e14234bf1fd48654dd999827f261eb688 /dist/windows | |
parent | 278677dd1bb3c9fa2b7f9950d13afaf04ef4059b (diff) | |
download | ghdl-f09e5b10cb8a299ee44e6218c3db24a85f718433.tar.gz ghdl-f09e5b10cb8a299ee44e6218c3db24a85f718433.tar.bz2 ghdl-f09e5b10cb8a299ee44e6218c3db24a85f718433.zip |
windows install script fix
Diffstat (limited to 'dist/windows')
-rw-r--r-- | dist/windows/InstallerTemplate.ps1 | 4 |
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 |