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:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user