Files
setup_windows_2/app/install_wireshark.cmd
T

35 lines
1.3 KiB
Batchfile
Raw Normal View History

2025-08-27 09:13:32 +00:00
:: ------------------------------------------------------------
:: Installationsroutine
:: ------------------------------------------------------------
:: --- Option: Download in ein temporäres Verzeichnis
:: --- Kann für z.B. für GLPI abgeschaltet werden
set SAVEPATH=%SYSTEMDRIVE%\TEMP\install
2026-09-10 09:05:27 +02:00
MKDIR %SAVEPATH% 2> nul & CD /D %SAVEPATH%
2025-08-27 09:13:32 +00:00
:: --- npcap herunterladen (muss manuell installiert werden)
set VERS=1.83
set BASEURL=https://npcap.com/dist
set PROG=npcap-%VERS%.exe
2026-09-10 09:05:27 +02:00
echo Starte Download npcap %VERS% - Achtung! Muss manuell installiert werden!
curl -kLSsf %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
if %ERRORLEVEL% EQU 0 (echo Download OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
2025-08-27 09:13:32 +00:00
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
set VERS=4.4.8
set BASEURL=https://2.na.dl.wireshark.org/win64
set PROG=Wireshark-%VERS%-x64.exe
2026-09-10 09:05:27 +02:00
:: --- Lade Datei herunter
echo Starte Download Version %VERS%.
curl -kLSsf %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
if %ERRORLEVEL% EQU 0 (echo Download OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
2025-08-27 09:13:32 +00:00
:: --- Silent-Installation des Programms:
2026-09-10 09:05:27 +02:00
echo Starte Installation.
%PROG% /S /EXTRACOMPONENTS=ciscodump,sshdump,udpdump
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
2025-08-27 09:13:32 +00:00