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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user