20 lines
763 B
Batchfile
20 lines
763 B
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% & CD /D %SAVEPATH%
|
||
|
|
||
|
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
|
||
|
set VERS=2.2.0
|
||
|
set BASEURL=https://github.com/windirstat/windirstat/releases/download/release/v%VERS%
|
||
|
set PROG=WinDirStat-x64.msi
|
||
|
|
||
|
:: --- Lade Installationsdatei herunter
|
||
|
curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
|
||
|
|
||
|
:: --- Silent-Installation des Programms:
|
||
|
%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log
|