diff --git a/build/win/installer.nsh b/build/win/installer.nsh index 6f054a26..48d68816 100644 --- a/build/win/installer.nsh +++ b/build/win/installer.nsh @@ -21,3 +21,8 @@ !macro customInstallMode StrCpy $isForceCurrentInstall "1" !macroend + +!macro customInit + IfFileExists $LOCALAPPDATA\Hyper\Update.exe 0 +2 + nsExec::Exec '"$LOCALAPPDATA\Hyper\Update.exe" --uninstall -s' +!macroend \ No newline at end of file