Files
setup_windows_2/app/install_glpi-albrecht.cmd
T

30 lines
1.3 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%
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
:: https://github.com/glpi-project/glpi-agent/releases/latest
set VERS=1.15
set BASEURL=https://github.com/glpi-project/glpi-agent/releases/download/%VERS%
set PROG=GLPI-Agent-%VERS%-x64.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 /quiet RUNNOW=1 ADDLOCAL=feat_AGENT,feat_DEPLOY,feat_WOL AGENTMONITOR=1 ADD_FIREWALL_EXCEPTION=1 SSL_FINGERPRINT=sha256$17a749f9671e84d9e5734f19b4dd28877e4ea01f1f53e3cb2e5bdec0411971bc TAG=AE SERVER=https://glpi.albrecht-elektrotechnik.local/plugins/glpiinventory/
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)