24 lines
997 B
Batchfile
24 lines
997 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% 2> nul & CD /D %SAVEPATH%
|
|
|
|
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
|
|
set BASEURL=https://glpi.albrecht-elektrotechnik.local/repo/standardsoftware
|
|
set PROG=agent_cloud_x64.msi
|
|
|
|
:: --- Lade Installationsdatei 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. (Kann etwas dauern!)
|
|
C:\windows\system32\msiexec.exe /i "agent_cloud_x64.msi" /qn /norestart
|
|
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|
|
|