Update von AE übernommen...
This commit is contained in:
+14
-4
@@ -5,15 +5,25 @@
|
||||
:: --- Option: Download in ein temporäres Verzeichnis
|
||||
:: --- Kann für z.B. für GLPI abgeschaltet werden
|
||||
set SAVEPATH=%SYSTEMDRIVE%\SETUP
|
||||
MKDIR %SAVEPATH% & CD /D %SAVEPATH%
|
||||
MKDIR %SAVEPATH% 2> nul & CD /D %SAVEPATH%
|
||||
|
||||
:: https://github.com/ar51an/iperf3-win-builds/releases/latest
|
||||
set VERS=3.19.1
|
||||
set BASEURL=https://github.com/ar51an/iperf3-win-builds/releases/download/%VERS%
|
||||
set PROG=iperf-%VERS%-win64.zip
|
||||
|
||||
curl -kLO %BASEURL%/%PROG%
|
||||
:: --- 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.
|
||||
powershell.exe "& {Expand-Archive %PROG% -Force -DestinationPath %SYSTEMDRIVE%\Windows }"
|
||||
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|
||||
del %PROG%
|
||||
if %ERRORLEVEL% EQU 0 (echo Räume auf... ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|
||||
|
||||
|
||||
powershell.exe "& {Expand-Archive %PROG% -Force -DestinationPath %SYSTEMDRIVE%\Windows }"
|
||||
|
||||
del %PROG%
|
||||
|
||||
|
||||
Reference in New Issue
Block a user