Files
setup_windows_2/app/install_firefox-stub.cmd
T

33 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
set BASEURL="https://download.mozilla.org/?product=firefox-stub&os=win64&lang=de"
set PROG=FirefoxSetup.exe
:: --- Lade Datei herunter
echo Starte Download.
curl -kLSsf %BASEURL% -o %SAVEPATH%\%PROG%
if %ERRORLEVEL% EQU 0 (echo Download OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
:: --- Silent-Installation des Programms:
echo Starte Installation.
(
echo [Install]
echo TaskbarShortcut=true
echo DesktopShortcut=true
echo StartMenuShortcuts=true
echo RegisterDefaultAgent=true
) > FirefoxInstaller_setup.ini
%PROG% /INI=FirefoxInstaller_setup.ini
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)