mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Winpcap update: When installing on vista use a different Packet.dll file and do not install WanPacket.dll
This commit is contained in:
parent
6a5d7a92ac
commit
8094a16c90
3 changed files with 25 additions and 11 deletions
|
|
@ -46,3 +46,6 @@ How to upgrade nmap to a new winpcap release (2007)
|
|||
/traceroute)
|
||||
|
||||
11) Sit back and have a cup of coffee, you deserve it :)
|
||||
|
||||
|
||||
*NB* You must also update vista/Packet.dll with the vista specific version from the offcial winpcap release
|
||||
|
|
|
|||
BIN
mswin32/winpcap/vista/Packet.dll
Normal file
BIN
mswin32/winpcap/vista/Packet.dll
Normal file
Binary file not shown.
|
|
@ -102,23 +102,34 @@ Section "" ;No components page, name is not important
|
|||
|
||||
SetOutPath $SYSDIR
|
||||
|
||||
File Packet.dll
|
||||
File pthreadVC.dll
|
||||
File WanPacket.dll
|
||||
File wpcap.dll
|
||||
|
||||
SetOutPath $SYSDIR\drivers
|
||||
; Check windows version
|
||||
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" VersionNumber
|
||||
StrCmp $R0 '6.0'vista_files no_vista_files
|
||||
|
||||
File npf.sys
|
||||
no_vista_files:
|
||||
File Packet.dll
|
||||
File WanPacket.dll
|
||||
Goto install
|
||||
|
||||
; Install some basic registry keys
|
||||
WriteRegStr HKLM "Software\WinPcap" "" '"$INSTDIR"'
|
||||
vista_files:
|
||||
File vista\Packet.dll
|
||||
|
||||
; Write the uninstall keys for Windows
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\winpcap-nmap" "DisplayName" "winpcap-nmap 4.01"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\winpcap-nmap" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\winpcap-nmap" "NoModify" 1
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\winpcap-nmap" "NoRepair" 1
|
||||
install:
|
||||
SetOutPath $SYSDIR\drivers
|
||||
|
||||
File npf.sys
|
||||
|
||||
; Install some basic registry keys
|
||||
WriteRegStr HKLM "Software\WinPcap" "" '"$INSTDIR"'
|
||||
|
||||
; Write the uninstall keys for Windows
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\winpcap-nmap" "DisplayName" "winpcap-nmap 4.01"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\winpcap-nmap" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\winpcap-nmap" "NoModify" 1
|
||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\winpcap-nmap" "NoRepair" 1
|
||||
|
||||
SectionEnd ; end the section
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue