Files
setup_windows_2/app/install_firefox-msi.cmd
T

34 lines
1.1 KiB
Batchfile
Raw Normal View History

2026-09-10 09:05:27 +02:00
:: ------------------------------------------------------------
:: 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://download-installer.cdn.mozilla.net/pub/firefox/releases/144.0/win64/de/Firefox%20Setup%20144.0.msi
set VERS=144.0
set BASEURL=https://download-installer.cdn.mozilla.net/pub/firefox/releases/%VERS%/win64/de/
set PROG=Firefox%20Setup%20%VERS%.msi
:: --- Lade Datei herunter
echo Starte Download.
curl -kLSsf "%BASEURL%" -o %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 TASKBAR_SHORTCUT=true DESKTOP_SHORTCUT=false
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)