Bug 1394582 - Don't hang forever in the stub installer if the browser was already running. r?agashlin
Fixes a regression from
bug 1376597, which caused the stub installer to hang
forever and not respond to the close button if the browser was already running
during the installation.
MozReview-Commit-ID: A1XWGvnlgrS
--- a/browser/installer/windows/nsis/stub.nsi
+++ b/browser/installer/windows/nsis/stub.nsi
@@ -1568,16 +1568,17 @@ Function CanWrite
FunctionEnd
Function LaunchApp
!ifndef DEV_EDITION
FindWindow $0 "${WindowClass}"
${If} $0 <> 0 ; integer comparison
StrCpy $FirefoxLaunchCode "1"
MessageBox MB_OK|MB_ICONQUESTION "$(WARN_MANUALLY_CLOSE_APP_LAUNCH)"
+ Call SendPing
Return
${EndIf}
!endif
StrCpy $FirefoxLaunchCode "2"
; Set the current working directory to the installation directory
SetOutPath "$INSTDIR"