diff options
author | Cy Schubert <cy@FreeBSD.org> | 2024-05-10 20:48:53 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2024-05-10 20:48:53 +0000 |
commit | c2a80056864d6eda0398fd127dc0ae515b39752b (patch) | |
tree | 92e6196ae61df0fa7e4db654f78dfd837cc41826 /winrc/setup.nsi | |
parent | 5a33598e88ad8fbc0affa74dee0a2d8cc4010fbc (diff) |
unbound: Vendor import 1.20.0vendor/unbound/1.20.0
Release notes at
https://www.nlnetlabs.nl/news/2024/May/08/unbound-1.20.0-released/
Security: The DNSBomb vulnerability CVE-2024-33655
Diffstat (limited to 'winrc/setup.nsi')
-rw-r--r-- | winrc/setup.nsi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/winrc/setup.nsi b/winrc/setup.nsi index 886d83a99929..64e5523f76ed 100644 --- a/winrc/setup.nsi +++ b/winrc/setup.nsi @@ -78,6 +78,15 @@ section "Root anchor - DNSSEC" SectionRootKey sectionEnd section "-hidden.postinstall" + # if Unbund is already installed, ask to stop it to allow file replacement + IfFileExists "$INSTDIR\unbound-service-remove.exe" 0 service_remove_end + MessageBox MB_YESNO|MB_ICONEXCLAMATION "Unbound is already installed!$\r$\n$\r$\nWould you like to stop the service to continue with the update?" /SD IDYES IDNO service_remove_quit # defaults to yes on silent installations + nsExec::ExecToLog '"$INSTDIR\unbound-service-remove.exe" stop' + Sleep 1000 + Goto service_remove_end + service_remove_quit: + Quit + service_remove_end: # copy files SetRegView 64 setOutPath $INSTDIR @@ -134,6 +143,7 @@ section "-hidden.postinstall" # register uninstaller WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Unbound" "DisplayName" "Unbound" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Unbound" "DisplayVersion" "${VERSION}" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Unbound" "UninstallString" "$\"$INSTDIR\uninst.exe$\"" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Unbound" "QuietUninstallString" "$\"$INSTDIR\uninst.exe$\" /S" WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Unbound" "NoModify" "1" |