File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
installer_builder/build/svarog_exe Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,35 @@ InstallDir "$PROGRAMFILES\Svarog"
7676
7777# #####################################################################
7878
79+ Section -SecUninstallPrevious
80+
81+ Call UninstallPrevious
82+
83+ SectionEnd
84+
85+
86+ Function UninstallPrevious
87+
88+ ; Check for uninstaller.
89+ ReadRegStr $R0 HKLM " ${UNINSTALL_PATH}" " UninstallString"
90+ DetailPrint " Uninstaller path $R0"
91+ ${If} $R0 == " "
92+ Goto Done
93+ ${EndIf}
94+
95+ DetailPrint " Removing previous installation."
96+
97+ MessageBox MB_YESNO " Uninstall previous version?" IDYES true IDNO false
98+ true :
99+ ExecWait ' "$R0" /S _?=$INSTDIR'
100+ Goto Done
101+ false :
102+ Abort
103+ ; Run the uninstaller silently.
104+ Done:
105+
106+ FunctionEnd
107+
79108Section -MainProgram
80109${INSTALL_TYPE}
81110SetOverwrite ifnewer
You can’t perform that action at this time.
0 commit comments