mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
d1fd7cd43a
commit
f3d9c4093e
2 changed files with 10 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue