31 lines
1.1 KiB
Batchfile
31 lines
1.1 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%
|
|
|
|
:: --- Major und Minor Version: z.B. MAJ=4.2, MIN=3 ergibt: 4.2.3
|
|
set MAJ=4.2
|
|
set MIN=3
|
|
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
|
|
set BASEURL=https://ftp.halifax.rwth-aachen.de/blender/release/Blender%MAJ%
|
|
set PROG=blender-%MAJ%.%MIN%-windows-x64.msi
|
|
|
|
:: --- Lade Datei herunter
|
|
echo Starte Download.
|
|
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.
|
|
%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" ALLUSERS=1 /qn /passive /l %SAVEPATH%\%PROG%.log
|
|
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|
|
|
|
|
|
|
|
|
|
|