Bug 615131 - Installer crashes if 'Next' button is clicked while 'Looking for existing installation...' dialog is displayed. r=jmathies, a=approval2.0

This commit is contained in:
Robert Strong
2010-12-21 16:32:01 -08:00
parent 2fae256d83
commit 348e2480ad

View File

@@ -596,6 +596,14 @@ Function CheckExistingInstall
Quit
${If} ${FileExists} "$INSTDIR\${FileMainEXE}"
; Disable the next, cancel, and back buttons
GetDlgItem $0 $HWNDPARENT 1 ; Next button
EnableWindow $0 0
GetDlgItem $0 $HWNDPARENT 2 ; Cancel button
EnableWindow $0 0
GetDlgItem $0 $HWNDPARENT 3 ; Back button
EnableWindow $0 0
Banner::show /NOUNLOAD "$(BANNER_CHECK_EXISTING)"
${If} "$TmpVal" == "FoundMessageWindow"
@@ -610,6 +618,14 @@ Function CheckExistingInstall
Banner::destroy
; Enable the next, cancel, and back buttons
GetDlgItem $0 $HWNDPARENT 1 ; Next button
EnableWindow $0 1
GetDlgItem $0 $HWNDPARENT 2 ; Cancel button
EnableWindow $0 1
GetDlgItem $0 $HWNDPARENT 3 ; Back button
EnableWindow $0 1
${If} "$TmpVal" == "true"
StrCpy $TmpVal "FoundMessageWindow"
${ManualCloseAppPrompt} "${WindowClass}" "$(WARN_MANUALLY_CLOSE_APP_INSTALL)"