Files
setup_windows_2/app/install_wireshark.cmd
T

35 lines
1.3 KiB
Batchfile

:: ------------------------------------------------------------
:: Installationsroutine
:: ------------------------------------------------------------
:: --- Option: Download in ein temporäres Verzeichnis
:: --- Kann für z.B. für GLPI abgeschaltet werden
set SAVEPATH=%SYSTEMDRIVE%\TEMP\install
MKDIR %SAVEPATH% 2> nul & CD /D %SAVEPATH%
:: --- npcap herunterladen (muss manuell installiert werden)
set VERS=1.83
set BASEURL=https://npcap.com/dist
set PROG=npcap-%VERS%.exe
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!)
:: --- 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
:: --- 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!)
:: --- Silent-Installation des Programms:
echo Starte Installation.
%PROG% /S /EXTRACOMPONENTS=ciscodump,sshdump,udpdump
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)