mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Uninstall before
This commit is contained in:
parent
56ad2a3346
commit
ec7ecd6b40
1 changed files with 6 additions and 1 deletions
|
|
@ -69,8 +69,13 @@ process {
|
|||
# throw "Downloaded installer has not been signed by Certbot development team."
|
||||
# }
|
||||
|
||||
if (Test-Path $installDir\uninstall.exe) {
|
||||
# Uninstall old Certbot first
|
||||
"Running the uninstaller for old version (install dir: $installDir) ..."
|
||||
Start-Process -FilePath $installDir\uninstall.exe -ArgumentList "/S _?=$installDir"
|
||||
}
|
||||
# Install new version of Certbot
|
||||
"Running the installer (installation directory: $installDir) ..."
|
||||
"Running the installer for new version (install dir: $installDir) ..."
|
||||
Start-Process -FilePath $installerPath -ArgumentList "/S /D=$installDir"
|
||||
|
||||
"Certbot $latestVersion is installed."
|
||||
|
|
|
|||
Loading…
Reference in a new issue