36 lines
1.4 KiB
Batchfile
36 lines
1.4 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%
|
|
|
|
:: --- TortoiseGIT
|
|
set VERS=2.17.0.0
|
|
set BASEURL=https://download.tortoisegit.org/tgit/%VERS%
|
|
set PROG=TortoiseGit-%VERS%-64bit.msi
|
|
|
|
:: --- 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.
|
|
%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log
|
|
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|
|
|
|
:: --- Sprachpaket Deutsch
|
|
echo Starte Download Sprachpaket Version %VERS%.
|
|
set PROG=TortoiseGit-LanguagePack-%VERS%-64bit-de.msi
|
|
curl -kLSsf %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
|
|
if %ERRORLEVEL% EQU 0 (echo Download OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|
|
|
|
echo Starte Installation.
|
|
%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log
|
|
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|
|
|
|
|