mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Call Bonjour installer from NSIS installer
This commit is contained in:
@@ -262,7 +262,7 @@ async function build () {
|
||||
}
|
||||
|
||||
// Remove build directory
|
||||
//fs.removeSync(BUILD_PATH);
|
||||
fs.removeSync(BUILD_PATH);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -47,6 +47,17 @@ Section
|
||||
File "{{bindingName}}"
|
||||
File "{{manifestName}}"
|
||||
|
||||
# Install Bonjour
|
||||
IfFileExists "$SYSDIR\dnssd.dll" endInstallBonjour beginInstallBonjour
|
||||
Goto endInstallBonjour
|
||||
beginInstallBonjour:
|
||||
MessageBox MB_YESNO "Install Bonjour dependency?" /SD IDYES IDNO endInstallBonjour
|
||||
File /oname=Bonjour64.msi "C:\Program Files\Bonjour SDK\Installer\Bonjour64.msi"
|
||||
ExecWait '"msiexec" /i "$INSTDIR\Bonjour64.msi"'
|
||||
endInstallBonjour:
|
||||
Delete "$INSTDIR\Bonjour64.msi"
|
||||
|
||||
|
||||
# Native manifest key
|
||||
WriteRegStr HKLM "${KEY_MANIFEST}" "" "$INSTDIR\{{manifestName}}"
|
||||
|
||||
@@ -73,6 +84,7 @@ Section "uninstall"
|
||||
# Remove manifest and executable dir
|
||||
DeleteRegKey HKLM ${KEY_MANIFEST}
|
||||
Delete "$INSTDIR\{{executableName}}"
|
||||
Delete "$INSTDIR\{{bindingName}}"
|
||||
Delete "$INSTDIR\{{manifestName}}"
|
||||
RMDir $INSTDIR
|
||||
SectionEnd
|
||||
|
||||
Reference in New Issue
Block a user