Update von AE übernommen...
This commit is contained in:
+30
-25
@@ -1,25 +1,30 @@
|
||||
:: ------------------------------------------------------------
|
||||
:: 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% & CD /D %SAVEPATH%
|
||||
|
||||
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
|
||||
set VERS=2501
|
||||
set BASEURL=https://7-zip.org/a
|
||||
set PROG=7z%VERS%-x64.msi
|
||||
|
||||
:: --- Lade Installationsdatei herunter
|
||||
curl -kL %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
|
||||
|
||||
:: --- Silent-Installation des Programms:
|
||||
%SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log
|
||||
|
||||
:: ---- Beispiele ---------------------------------------------
|
||||
:: %PROG% /S
|
||||
:: %PROG% /VERYSILENT /NORESTART /ALLUSERS
|
||||
:: %PROG% /install /quiet /norestart
|
||||
:: %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log
|
||||
:: ------------------------------------------------------------
|
||||
:: 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://7-zip.org
|
||||
set VERS=2601
|
||||
set BASEURL=https://7-zip.org/a
|
||||
set PROG=7z%VERS%-x64.msi
|
||||
|
||||
:: --- Lade Installationsdatei herunter
|
||||
echo Starte Download.
|
||||
curl -kLSsf %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
|
||||
if %ERRORLEVEL% EQU 0 (echo Download ok! ) else ( echo Fehlercode %ERRORLEVEL% )
|
||||
|
||||
:: --- 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 Fehlercode %ERRORLEVEL% )
|
||||
|
||||
:: ---- Beispiele ---------------------------------------------
|
||||
:: %PROG% /S
|
||||
:: %PROG% /VERYSILENT /NORESTART /ALLUSERS
|
||||
:: %PROG% /install /quiet /norestart
|
||||
:: %SYSTEMDRIVE%\windows\system32\msiexec /i "%PROG%" /passive /l %SAVEPATH%\%PROG%.log
|
||||
|
||||
Reference in New Issue
Block a user