We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c836482 commit 47d2f6cCopy full SHA for 47d2f6c
1 file changed
install.ps1
@@ -107,7 +107,11 @@ if (-not (Test-Path $installDir)) { New-Item -ItemType Directory -Force -Path $i
107
108
Write-Host "Installing to $installDir..." -ForegroundColor Cyan
109
if (Test-Path $exeDest) {
110
- Remove-Item -Path $exeDest -Force
+ $oldExe = Join-Path $installDir "$BinaryName.exe.old"
111
+ if (Test-Path $oldExe) {
112
+ Remove-Item -Path $oldExe -Force -ErrorAction SilentlyContinue
113
+ }
114
+ Move-Item -Path $exeDest -Destination $oldExe -Force
115
}
116
Move-Item -Path $foundBinary.FullName -Destination $exeDest -Force
117
0 commit comments