Update von AE übernommen...
This commit is contained in:
+8
-11
@@ -8,19 +8,16 @@ 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"
|
||||
:: https://download.mozilla.org/?product=firefox-latest&os=win64&lang=de
|
||||
set BASEURL="https://download.mozilla.org/?product=firefox-latest&os=win64&lang=de"
|
||||
set PROG=FirefoxSetup.exe
|
||||
|
||||
:: --- Lade Installationsdatei herunter
|
||||
curl -kLs %BASEURL% -o %SAVEPATH%\%PROG%
|
||||
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 [Install]
|
||||
echo TaskbarShortcut=true
|
||||
echo DesktopShortcut=true
|
||||
echo StartMenuShortcuts=true
|
||||
echo RegisterDefaultAgent=true
|
||||
) > FirefoxInstaller_setup.ini
|
||||
|
||||
%PROG% /INI=FirefoxInstaller_setup.ini
|
||||
echo Starte Installation.
|
||||
%PROG% /S
|
||||
if %ERRORLEVEL% EQU 0 (echo Installation OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
|
||||
|
||||
Reference in New Issue
Block a user