mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 16:02:50 +02:00
updated windows installer script to be more user friendly
This commit is contained in:
@@ -71,14 +71,16 @@ Function MUIGUIInit
|
|||||||
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APNAME}_${APVER}" "UninstallString"
|
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APNAME}_${APVER}" "UninstallString"
|
||||||
StrCmp $R0 "" doneInit
|
StrCmp $R0 "" doneInit
|
||||||
|
|
||||||
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
|
MessageBox MB_YESNO|MB_ICONEXCLAMATION \
|
||||||
"${APNAME} v${APVER} is already installed. $\n$\nClick `OK` to remove the \
|
"${APNAME} v${APVER} is already installed. $\n$\nClick `Yes` to remove the \
|
||||||
previous installation or `Cancel` to install to a different location." \
|
previous installation or `No` to over-write or install to a different location." \
|
||||||
IDOK uninstInit
|
IDYES uninstInit
|
||||||
|
|
||||||
# change install folder to a version specific name to aovid over-writing
|
# change install folder to a version specific name to avoid over-writing
|
||||||
# old one
|
# old one
|
||||||
StrCpy $INSTDIR "$PROGRAMFILES\${APNAME}_${APVER}"
|
StrCpy $INSTDIR "$PROGRAMFILES\${APNAME}_${APVER}"
|
||||||
|
ClearErrors
|
||||||
|
|
||||||
goto doneInit
|
goto doneInit
|
||||||
|
|
||||||
;Run the uninstaller
|
;Run the uninstaller
|
||||||
|
Reference in New Issue
Block a user