Files
setup_windows_2/app/app_template.cmd
T

43 lines
1.5 KiB
Batchfile
Raw Normal View History

2025-08-26 13:15:41 +00:00
:: ------------------------------------------------------------
:: Installationsroutine
:: ------------------------------------------------------------
:: --- Option: Download in ein temporäres Verzeichnis
:: --- Kann für z.B. für GLPI abgeschaltet werden
set SAVEPATH=%SYSTEMDRIVE%\TEMP\install
2026-09-10 09:05:27 +02:00
MKDIR %SAVEPATH% 2> nul & CD /D %SAVEPATH%
2025-08-26 13:15:41 +00:00
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
2026-09-10 09:05:27 +02:00
set VERS=
2025-08-26 13:15:41 +00:00
set BASEURL=
set PROG=
2026-09-10 09:05:27 +02:00
:: --- 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!)
2025-08-26 13:15:41 +00:00
:: --- Silent-Installation des Programms:
2026-09-10 09:05:27 +02:00
echo Starte Installation.
%PROG% /S
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
2025-08-26 13:15:41 +00:00
2026-09-10 09:05:27 +02:00
:: nützliche Snippets:
:: if %ERRORLEVEL% EQU 0 (echo OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
2025-08-26 13:15:41 +00:00
:: --- Installiere C++ Redistibutable
:: set BASEURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/essentiell
:: set PROG=VC_redist.x64.exe
2026-09-10 09:05:27 +02:00
:: curl -kLSsf %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & %PROG% /Q
2025-08-26 13:15:41 +00:00
2026-09-10 09:05:27 +02:00
:: --- Entpacke .ZIP
2025-08-26 13:15:41 +00:00
:: powershell.exe -command "Expand-Archive -Force -Path %PROG% -DestinationPath . "
2026-09-10 09:05:27 +02:00
:: ---- Beispiele für Silent-Installation-Switches ---------------------------------------------
2025-08-26 13:15:41 +00:00
:: %PROG% /S
:: %PROG% /VERYSILENT /NORESTART /ALLUSERS
:: %PROG% /install /quiet /norestart
:: %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log