Comment only change - Bug 460698 - Confusing undocumented code in uninstaller.nsi - un.leaveWelcome. r=me

This commit is contained in:
Robert Strong 2008-10-20 12:08:26 -07:00
Родитель e5191fb640
Коммит 2402884cb7
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -383,6 +383,8 @@ Function un.leaveWelcome
${If} ${FileExists} "$INSTDIR\${FileMainEXE}"
Banner::show /NOUNLOAD "$(BANNER_CHECK_EXISTING)"
; If the message window has been found previously give the app an additional
; five seconds to close.
${If} "$TmpVal" == "FoundMessageWindow"
Sleep 5000
${EndIf}
@ -393,9 +395,14 @@ Function un.leaveWelcome
Banner::destroy
; If there are files in use $TmpVal will be "true"
${If} "$TmpVal" == "true"
; If the message window is found the call to ManualCloseAppPrompt will
; abort leaving the value of $TmpVal set to "FoundMessageWindow".
StrCpy $TmpVal "FoundMessageWindow"
${un.ManualCloseAppPrompt} "${WindowClass}" "$(WARN_MANUALLY_CLOSE_APP_UNINSTALL)"
; If the message window is not found set $TmpVal to "true" so the restart
; required message is displayed.
StrCpy $TmpVal "true"
${EndIf}
${EndIf}