Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

install.cmd:

@echo off
REM========================================================================================
REM Install FireFox 1619.0.2
REM========================================================================================
REM Script Details:
REM --------------
REM This script will:
REM + silently install or upgrade Firefox 1619.0 WITHOUT Firefox being the default browser
REM + Disables the 'Automatically check for updates' option
REM + Disables the 'Always check to see if Firefox is the default browser on startup' option
REM + Changes the download option 'Always ask me where to save files' to enabled
REM + Works for Windows XP / 7 32-bit and 64-bit
REM .
REM========================================================================================
echo Installing Firefox - Please Wait.
echo Window will close after install is complete

REM Install Firefox 1619
"%~dp0Firefox Setup 1619.0.2.exe" -ms

REM Install 32-bit customisations
if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0override.ini" "%programfiles%\Mozilla Firefox\"
if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0mozilla.cfg" "%programfiles%\Mozilla Firefox\"
if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0local-settings.js" "%programfiles%\Mozilla Firefox\defaults\pref"

...

REM Return exit code to SCCM
exit /B %EXIT_CODE%

local-settings.js:

pref("general.config.obscure_value", 0);
pref("general.config.filename", "mozilla.cfg");

Mozilla.cfg:

//Firefox Default Settings

pref("browser.startup.homepage","http://www.minstartsida.se");

//disable default browser check
pref("browser.shell.checkDefaultBrowser", false);

// disable application updates
pref("app.update.enabled", false);

//use classic downloader
pref("browser.download.useDownloadDir", false);

override.ini:

Wiki Markup
\[XRE\]
EnableProfileMigrator=false