1
0
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:
robert
2010-04-24 20:48:57 +00:00
parent 8e25327a68
commit f5e3cee4ac

View File

@@ -232,20 +232,7 @@ Section "WinPcap 4.1.1" SecWinPcap
StrCmp $2 "NO" 0 NoSkipNPFStartup
StrCpy $1 "/NPFSTARTUP=NO $1"
NoSkipNPFStartup:
; check for x64 so we install files into C:\Program Files on both platforms
; 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:
ExecWait '"$INSTDIR\winpcap-nmap-4.11.exe" $1 /S'
Goto delete_winpcap
winpcap_loud:
ExecWait '"$INSTDIR\winpcap-nmap-4.11.exe"'