updated windows installer script to be more user friendly

This commit is contained in:
Mark Vejvoda
2010-07-17 10:33:05 +00:00
parent 9c133a71b2
commit d610650624

View File

@@ -71,14 +71,16 @@ Function MUIGUIInit
ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APNAME}_${APVER}" "UninstallString"
StrCmp $R0 "" doneInit
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
"${APNAME} v${APVER} is already installed. $\n$\nClick `OK` to remove the \
previous installation or `Cancel` to install to a different location." \
IDOK uninstInit
MessageBox MB_YESNO|MB_ICONEXCLAMATION \
"${APNAME} v${APVER} is already installed. $\n$\nClick `Yes` to remove the \
previous installation or `No` to over-write or install to a different location." \
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
StrCpy $INSTDIR "$PROGRAMFILES\${APNAME}_${APVER}"
ClearErrors
goto doneInit
;Run the uninstaller