Call Bonjour installer from NSIS installer

This commit is contained in:
hensm
2020-05-11 18:42:02 +01:00
parent f8e91da958
commit c2bf9e4cdc
2 changed files with 13 additions and 1 deletions

View File

@@ -262,7 +262,7 @@ async function build () {
}
// Remove build directory
//fs.removeSync(BUILD_PATH);
fs.removeSync(BUILD_PATH);
}
/**

View File

@@ -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