1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-05 22:19:03 +00:00

Fixed a "minor" problem with our WinPcap installer (instead of running our uninstaller if our InstalledBy string was present, it would run "Nmap /S _?=$INSTDIR"), which caused Nmap to briefly display its help output if it was in the same directory (or presumably in the system/user's PATH).

This commit is contained in:
robert
2011-08-20 21:57:29 +00:00
parent 975cc24cf9
commit 328fb8091f
2 changed files with 4 additions and 11 deletions

View File

@@ -207,8 +207,10 @@ Function .onInit
return
silent_uninstall:
; Our old UninstallString is present, should have quotes and uninstall.exe location
; and should support a silent uninstall by passing /S to it.
; Our InstalledBy string is present, UninstallString should have quotes and uninstall.exe location
; and this file should support a silent uninstall by passing /S to it.
; we could read QuietUninstallString, but this should be exactly the same as UninstallString with /S on the end.
ReadRegStr $0 "HKLM" "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinPcapInst" "UninstallString"
ExecWait '$0 /S _?=$INSTDIR'
return