Uninstall older install on Windows if present

This commit is contained in:
Labhansh Agrawal 2021-02-11 21:33:26 +05:30
parent 6c510a5017
commit f76c27c44a

View file

@ -21,3 +21,8 @@
!macro customInstallMode !macro customInstallMode
StrCpy $isForceCurrentInstall "1" StrCpy $isForceCurrentInstall "1"
!macroend !macroend
!macro customInit
IfFileExists $LOCALAPPDATA\Hyper\Update.exe 0 +2
nsExec::Exec '"$LOCALAPPDATA\Hyper\Update.exe" --uninstall -s'
!macroend