mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 02:29:59 +00:00
Handle Firefox using executable files in NSIS uninstaller
This commit is contained in:
@@ -53,7 +53,7 @@ Section
|
|||||||
beginInstallBonjour:
|
beginInstallBonjour:
|
||||||
MessageBox MB_YESNO "Install Bonjour dependency?" /SD IDYES IDNO endInstallBonjour
|
MessageBox MB_YESNO "Install Bonjour dependency?" /SD IDYES IDNO endInstallBonjour
|
||||||
File /oname=Bonjour64.msi "C:\Program Files\Bonjour SDK\Installer\Bonjour64.msi"
|
File /oname=Bonjour64.msi "C:\Program Files\Bonjour SDK\Installer\Bonjour64.msi"
|
||||||
ExecWait '"msiexec" /i "$INSTDIR\Bonjour64.msi"'
|
ExecWait "'msiexec' /i '$INSTDIR\Bonjour64.msi'"
|
||||||
endInstallBonjour:
|
endInstallBonjour:
|
||||||
Delete "$INSTDIR\Bonjour64.msi"
|
Delete "$INSTDIR\Bonjour64.msi"
|
||||||
|
|
||||||
@@ -77,6 +77,25 @@ SectionEnd
|
|||||||
Section "uninstall"
|
Section "uninstall"
|
||||||
SetRegView 64
|
SetRegView 64
|
||||||
|
|
||||||
|
FindWindow $0 "MozillaWindowClass"
|
||||||
|
StrCmp $0 0 continueUninstall
|
||||||
|
MessageBox MB_ABORTRETRYIGNORE|MB_ICONEXCLAMATION \
|
||||||
|
"Firefox must be closed during uninstallation if the extension \
|
||||||
|
is installed. Click $\"Retry$\" to force close or \
|
||||||
|
$\"Abort$\" to cancel uninstallation." \
|
||||||
|
IDABORT abortUninstall \
|
||||||
|
IDIGNORE continueUninstall
|
||||||
|
|
||||||
|
ExecWait "taskkill /f /im firefox.exe /t"
|
||||||
|
Goto continueUninstall
|
||||||
|
|
||||||
|
abortUninstall:
|
||||||
|
Abort
|
||||||
|
|
||||||
|
continueUninstall:
|
||||||
|
|
||||||
|
ExecWait "taskkill /f /im '{{executableName}}'"
|
||||||
|
|
||||||
# Remove uninstaller
|
# Remove uninstaller
|
||||||
Delete "$INSTDIR\uninstall.exe"
|
Delete "$INSTDIR\uninstall.exe"
|
||||||
DeleteRegKey HKLM ${KEY_UNINSTALL}
|
DeleteRegKey HKLM ${KEY_UNINSTALL}
|
||||||
|
|||||||
Reference in New Issue
Block a user