mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 04:39:03 +00:00
Add some extra debug information related to the Windows version detected
by the installer. Also notes that we recommend starting the WinPcap service at system startup for Windows 7 as well as vista. The patch is from Rob Nicholls.
This commit is contained in:
@@ -7,7 +7,7 @@ Left=10
|
|||||||
Right=-1
|
Right=-1
|
||||||
Top=20
|
Top=20
|
||||||
Bottom=28
|
Bottom=28
|
||||||
Text=Start the WinPcap service 'NPF' at startup (recommended on Windows Vista)
|
Text=Start the WinPcap service 'NPF' at startup (recommended on Windows 7 and Vista)
|
||||||
State=1
|
State=1
|
||||||
|
|
||||||
[Field 2]
|
[Field 2]
|
||||||
|
|||||||
@@ -288,6 +288,7 @@ Section "WinPcap" SecWinPcap
|
|||||||
|
|
||||||
; Check windows version
|
; Check windows version
|
||||||
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
|
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
|
||||||
|
DetailPrint "Windows CurrentVersion: $R0"
|
||||||
StrCpy $R0 $R0 2
|
StrCpy $R0 $R0 2
|
||||||
StrCmp $R0 '6.' vista_files
|
StrCmp $R0 '6.' vista_files
|
||||||
|
|
||||||
@@ -307,10 +308,12 @@ Section "WinPcap" SecWinPcap
|
|||||||
StrCmp $0 "0" is32bit is64bit
|
StrCmp $0 "0" is32bit is64bit
|
||||||
|
|
||||||
is32bit:
|
is32bit:
|
||||||
|
DetailPrint "Installing x86 driver"
|
||||||
File npf.sys ; x86 NT5/NT6 version
|
File npf.sys ; x86 NT5/NT6 version
|
||||||
Goto npfdone
|
Goto npfdone
|
||||||
|
|
||||||
is64bit:
|
is64bit:
|
||||||
|
DetailPrint "Installing x64 driver"
|
||||||
; disable Wow64FsRedirection
|
; disable Wow64FsRedirection
|
||||||
System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
|
System::Call kernel32::Wow64EnableWow64FsRedirection(i0)
|
||||||
File x64\npf.sys ; x64 NT5/NT6 version
|
File x64\npf.sys ; x64 NT5/NT6 version
|
||||||
|
|||||||
Reference in New Issue
Block a user