mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 06:59:01 +00:00
Simplified call to WinPcap installer during silent installs, now that the installation directory is no longer required (our WinPcap installer handles it all internally).
This commit is contained in:
@@ -232,21 +232,8 @@ Section "WinPcap 4.1.1" SecWinPcap
|
|||||||
StrCmp $2 "NO" 0 NoSkipNPFStartup
|
StrCmp $2 "NO" 0 NoSkipNPFStartup
|
||||||
StrCpy $1 "/NPFSTARTUP=NO $1"
|
StrCpy $1 "/NPFSTARTUP=NO $1"
|
||||||
NoSkipNPFStartup:
|
NoSkipNPFStartup:
|
||||||
|
ExecWait '"$INSTDIR\winpcap-nmap-4.11.exe" $1 /S'
|
||||||
; check for x64 so we install files into C:\Program Files on both platforms
|
Goto delete_winpcap
|
||||||
; as this is consistent with WinPcap 4.1 (even though rpcapd is a 32-bit
|
|
||||||
; executable that probably should be in C:\Program Files (x86)\ (where we've
|
|
||||||
; installed it in the past). Otherwise install in the normal x86 location.
|
|
||||||
System::Call "kernel32::GetCurrentProcess() i .s"
|
|
||||||
System::Call "kernel32::IsWow64Process(i s, *i .r0)"
|
|
||||||
StrCmp $0 "0" InstDir32bit InstDir64bit
|
|
||||||
InstDir64bit:
|
|
||||||
ExecWait '"$INSTDIR\winpcap-nmap-4.11.exe" $1 /S /D=$\""$PROGRAMFILES64\WinPcap\"$\"'
|
|
||||||
Goto InstDirDone
|
|
||||||
InstDir32bit:
|
|
||||||
ExecWait '"$INSTDIR\winpcap-nmap-4.11.exe" $1 /S /D=$\""$PROGRAMFILES\WinPcap\"$\"'
|
|
||||||
InstDirDone:
|
|
||||||
Goto delete_winpcap
|
|
||||||
winpcap_loud:
|
winpcap_loud:
|
||||||
ExecWait '"$INSTDIR\winpcap-nmap-4.11.exe"'
|
ExecWait '"$INSTDIR\winpcap-nmap-4.11.exe"'
|
||||||
delete_winpcap:
|
delete_winpcap:
|
||||||
|
|||||||
Reference in New Issue
Block a user