Update von AE übernommen...
This commit is contained in:
+16
-7
@@ -5,28 +5,37 @@
|
||||
:: --- Option: Download in ein temporäres Verzeichnis
|
||||
:: --- Kann für z.B. für GLPI abgeschaltet werden
|
||||
set SAVEPATH=%SYSTEMDRIVE%\TEMP\install
|
||||
MKDIR %SAVEPATH% & CD /D %SAVEPATH%
|
||||
MKDIR %SAVEPATH% 2> nul & CD /D %SAVEPATH%
|
||||
|
||||
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
|
||||
set VERS=
|
||||
set BASEURL=
|
||||
set PROG=
|
||||
|
||||
:: --- Lade Installationsdatei herunter
|
||||
curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
|
||||
:: --- 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:
|
||||
%PROG% /S
|
||||
echo Starte Installation.
|
||||
%PROG% /S
|
||||
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|
||||
|
||||
|
||||
:: nützliche Snippets:
|
||||
|
||||
:: if %ERRORLEVEL% EQU 0 (echo OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|
||||
|
||||
:: --- Installiere C++ Redistibutable
|
||||
:: set BASEURL=https://support.ostrachhelp.de/OstrachHELP/setup_windows/raw/branch/main/essentiell
|
||||
:: set PROG=VC_redist.x64.exe
|
||||
:: curl -k -L %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & %PROG% /Q
|
||||
:: curl -kLSsf %BASEURL%/%PROG% -o %SAVEPATH%\%PROG% & %PROG% /Q
|
||||
|
||||
:: --- Entpacket .ZIP
|
||||
:: --- Entpacke .ZIP
|
||||
:: powershell.exe -command "Expand-Archive -Force -Path %PROG% -DestinationPath . "
|
||||
|
||||
:: ---- Beispiele ---------------------------------------------
|
||||
:: ---- Beispiele für Silent-Installation-Switches ---------------------------------------------
|
||||
:: %PROG% /S
|
||||
:: %PROG% /VERYSILENT /NORESTART /ALLUSERS
|
||||
:: %PROG% /install /quiet /norestart
|
||||
|
||||
Reference in New Issue
Block a user