mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 18:09:01 +00:00
o Fixed Nmap Winpcap installer to use CurrentVersion registry key on
Windows rather than VersionNumber to more reliably detect Vista machines. This should prevent the XP version of Packet.dll from being installed on Vista. [Rob Nicholls]
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
# Nmap Changelog ($Id$); -*-text-*-
|
||||
|
||||
o Fixed Nmap Winpcap installer to use CurrentVersion registry key on
|
||||
Windows rather than VersionNumber to more reliably detect Vista
|
||||
machines. This should prevent the XP version of Packet.dll from
|
||||
being installed on Vista. [Rob Nicholls]
|
||||
|
||||
o Added nmap.fetchfile() function for scripts so they can easily find
|
||||
Nmap's nmap-* data files. [Kris]
|
||||
|
||||
|
||||
@@ -107,13 +107,12 @@ Section "" ;No components page, name is not important
|
||||
File wpcap.dll
|
||||
|
||||
; Check windows version
|
||||
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" VersionNumber
|
||||
StrCmp $R0 '6.0'vista_files no_vista_files
|
||||
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
|
||||
StrCmp $R0 '6.0' vista_files
|
||||
|
||||
no_vista_files:
|
||||
File Packet.dll
|
||||
File WanPacket.dll
|
||||
Goto install
|
||||
File Packet.dll
|
||||
File WanPacket.dll
|
||||
Goto install
|
||||
|
||||
vista_files:
|
||||
File vista\Packet.dll
|
||||
|
||||
Reference in New Issue
Block a user