Skip to content

Commit

Permalink
FixInstall: don't check for npf service any more.
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Jan 9, 2020
1 parent 00497e2 commit f728242
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions installer/FixInstall.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ for /F "usebackq tokens=1,2*" %%A IN (`reg query "%KEY_NAME%" /v "LoopbackAdapte
set LoopbackAdapter=%%C
)
echo LoopbackAdapter = %LoopbackAdapter%
for /F "usebackq tokens=1,2*" %%A IN (`reg query "%KEY_NAME%" /v "WinPcapCompatible" 2^>nul ^| find "WinPcapCompatible"`) do (
set WinPcapCompatible=%%C
)
echo WinPcapCompatible = %WinPcapCompatible%

rem Make sure we can find where Npcap is installed
set KEY_NAME=HKLM\Software\WOW6432Node\Npcap
Expand All @@ -41,14 +37,6 @@ if %Dot11Support% == 0x1 (
rem *_wifi service is disabled at install
sc.exe config npcap_wifi start= disabled
)
if %WinPcapCompatible% == 0x1 (
net stop npf
sc.exe config npf start= %START_TYPE%
if %Dot11Support% == 0x1 (
net stop npf_wifi
sc.exe config npf_wifi start= disabled
)
)

rem Remove and reinstall loopback adapters
if not %LoopbackAdapter% == "" (
Expand All @@ -75,19 +63,13 @@ net start bfe

rem Restart the services
net start npcap
if %WinPcapCompatible% == 0x1 (
net start npf
)

rem Rebind the filters to all adapters
if %Dot11Support% == 0x1 (
"%NPCAP_DIR%\NPFInstall.exe" -r2
) else (
"%NPCAP_DIR%\NPFInstall.exe" -r
)
if %WinPcapCompatible% == 0x1 (
"%NPCAP_DIR%\NPFInstall2.exe" -r
)

rem Done!
goto EOF
Expand Down

0 comments on commit f728242

Please sign in to comment.