From 1758d18f3db1b5c81cc5dc89a0d3a08ac0cfd0a3 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 13 Aug 2023 14:44:59 +0200 Subject: [PATCH] . --- optional/install-wireshark.cmd | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 optional/install-wireshark.cmd diff --git a/optional/install-wireshark.cmd b/optional/install-wireshark.cmd new file mode 100644 index 0000000..7549fe7 --- /dev/null +++ b/optional/install-wireshark.cmd @@ -0,0 +1,31 @@ +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set T=%SystemDrive%\TEMP +set EXE=..\software\wireshark-setup.exe + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo extracting npcap ... +7z e -aoa -o%T% %EXE% npcap*.exe 1>nul 2>nul +move /Y %T%\npcap*.exe %T%\npcap.exe + +echo installing npcap ... +start /wait %T%\npcap.exe +del /F /Q %T%\npcap.exe 2>nul + +echo installing WireShark ... +start /wait %EXE% /S + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause +