Files
setup_windows_2/app/install_firefox.cmd
T

24 lines
982 B
Batchfile
Raw Normal View History

2025-11-03 16:45:35 +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
MKDIR %SAVEPATH% 2> nul & CD /D %SAVEPATH%
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
2026-09-10 09:05:27 +02:00
:: https://download.mozilla.org/?product=firefox-latest&os=win64&lang=de
set BASEURL="https://download.mozilla.org/?product=firefox-latest&os=win64&lang=de"
2025-11-03 16:45:35 +00:00
set PROG=FirefoxSetup.exe
:: --- Lade Installationsdatei herunter
2026-09-10 09:05:27 +02:00
echo Starte Download.
curl -kLSsf %BASEURL% -o %SAVEPATH%\%PROG%
if %ERRORLEVEL% EQU 0 (echo Download OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
2025-11-03 16:45:35 +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!)