Skip to content

Commit

Permalink
Don't prompt for user input in FixInstall.bat, since that can run at …
Browse files Browse the repository at this point in the history
…system startup.
  • Loading branch information
bonsaiviking committed Dec 8, 2020
1 parent 6bc08a2 commit 4220ebb
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions installer/FixInstall.bat
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ if %Dot11Support% == 0x1 (
rem Remove and reinstall loopback adapters
if not %LoopbackAdapter% == "" (
"%NPCAP_DIR%\NPFInstall.exe" -ul
)
rem )
rem TODO Remove any leftover adapters in any case
netsh interface show interface | find "Npcap Loopback Adapter"
if NOT ERRORLEVEL 1 (
echo Some Npcap Loopback Adapter was not removed. Remove it manually:
echo 1. In the Device Manager, open 'Network adapters'
echo 2. Right-click any 'Npcap Loopback Adapter' and choose 'Uninstall device'
echo 3. Repeat until all Npcap Loopback Adapters are removed
start devmgmt.msc
pause
)

if not %LoopbackAdapter% == "" (
rem netsh interface show interface | find "Npcap Loopback Adapter"
rem if NOT ERRORLEVEL 1 (
rem echo Some Npcap Loopback Adapter was not removed. Remove it manually:
rem echo 1. In the Device Manager, open 'Network adapters'
rem echo 2. Right-click any 'Npcap Loopback Adapter' and choose 'Uninstall device'
rem echo 3. Repeat until all Npcap Loopback Adapters are removed
rem start devmgmt.msc
rem pause
rem )
rem
rem if not %LoopbackAdapter% == "" (
"%NPCAP_DIR%\NPFInstall.exe" -il
)

Expand Down

0 comments on commit 4220ebb

Please sign in to comment.