From f76c27c44a2459e3b670cb49b8dbbaaec8f9d62b Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Thu, 11 Feb 2021 21:33:26 +0530 Subject: [PATCH] Uninstall older install on Windows if present --- build/win/installer.nsh | 5 +++++ 1 file changed, 5 insertions(+) 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