aboutsummaryrefslogtreecommitdiffstats
path: root/dist/windows/InstallerTemplate.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'dist/windows/InstallerTemplate.ps1')
-rw-r--r--dist/windows/InstallerTemplate.ps16
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/windows/InstallerTemplate.ps1 b/dist/windows/InstallerTemplate.ps1
index 2b7c5713d..af60009f2 100644
--- a/dist/windows/InstallerTemplate.ps1
+++ b/dist/windows/InstallerTemplate.ps1
@@ -206,7 +206,7 @@ if ($Install)
[System.IO.File]::WriteAllBytes("$TempFilePath", $CompressedFileContentAsBytes)
Write-Host " Extracting ZIP file to: $InstallPath"
- Expand-Archive "$TempFilePath" -OutputPath $InstallPath
+ Expand-Archive "$TempFilePath" -OutputPath $InstallPath -Force -ShowProgress
Remove-Item $TempFilePath
@@ -249,7 +249,7 @@ elseif ($Update)
Write-Host " Install directory: $InstallPath"
if (Test-Path -Path $InstallPath)
{ Write-Host " Cleaning up installation directory '$InstallPath'." -ForegroundColor Yellow
- Get-ChildItem -Path $InstallPath -Depth 0 | foreach { Remove-Item $_ -Recurse -ErrorAction SilentlyContinue }
+ Get-ChildItem -Path $InstallPath -Depth 0 | foreach { Remove-Item $_.FullName -Recurse -Force }
}
Write-Host " Removing GHDL from PATH variables in Machine, User, Session ..." -ForegroundColor Yellow
@@ -272,7 +272,7 @@ elseif ($Update)
[System.IO.File]::WriteAllBytes("$TempFilePath", $CompressedFileContentAsBytes)
Write-Host " Extracting ZIP file to: $InstallPath"
- Expand-Archive "$TempFilePath" -OutputPath $InstallPath
+ Expand-Archive "$TempFilePath" -OutputPath $InstallPath -ShowProgress
Remove-Item $TempFilePath