Improve installer for Windows

This commit is contained in:
aurhat
2017-12-12 21:31:46 +01:00
parent bda6248d23
commit 4cbc4ab7dc
+2 -2
View File
@@ -72,7 +72,7 @@ InstallDirRegKey HKLM "Software\${AC_SHORTNAME}" ""
RequestExecutionLevel admin ; require admin in Vista/7
Function LeaveDirectory
IfFileExists $INSTDIR\Uninstall.exe 0 true
IfFileExists $INSTDIR\assaultcube.bat 0 true
MessageBox MB_YESNO|MB_ICONQUESTION \
"The directory $INSTDIR already exists. \
$\nPrevious AssaultCube version in this directory will be uninstalled, if you will install there new version. \
@@ -80,7 +80,7 @@ Function LeaveDirectory
IDYES true IDNO false
true:
ClearErrors
ExecWait '$INSTDIR\Uninstall.exe /S'
ExecWait '$INSTDIR\Uninstall.exe /S _?=$INSTDIR' ; wait until previous AC installation will be uninstalled
Goto next
false:
Abort