Install and Configure Firefox 49 silently using SCCM

To configure the Firefox default settings at the application level for all new and existing users you will need to use customised config file. There is one thing to note, that is that once the settings are configured it can not be changed by the user, whether or not you use ‘pref’ or ‘lockPref’. The following process has been tested and confirmed as working with Firefox 49.0.2 and SCCM R3 on Windows XP x86, Windows 7 x86, Windows 7 x64, Windows 8/8.1 x86, Windows 8/8.1 x64, Windows 10 x86 and Windows 10 x64. It does the following tasks:

  • Install Firefox silently, without Firefox being the default
  • Disables the ‘Automatically check for updates’ option
  • Disables the import wizard when Firefox first loads
  • Disables the ‘Always check to see if Firefox is the default browser on startup’ option
  • Sets homepage to ‘http://www.itsupportguides.com’ (you can change this in your configuration)
  • Disables the ‘know your rights’ button from displaying on first run
  • Disables the request to send performance data from displaying

 

Having troubles with the instructions? Take a look at the example download.
Full Download: FirefoxSilentInstall.zip

 

How to customise and deploy (silent install) Firefox

  1. Create a temporary working folder for saving the files into (for example, create C:\TEMP\Firefox)
  2. SCCM-Firefox1
  3. Download the latest install file at http://www.mozilla.org/en-US/firefox/all . Save to C:\TEMP\Firefox
  4. Create a new text file called ‘override.ini’ and copy in the following information:
[XRE]
EnableProfileMigrator=false
  1. Create a new text file called ‘local-settings.js’ and copy in the folling information:
pref("general.config.obscure_value", 0);
pref("general.config.filename", "mozilla.cfg");
  1. Create a new text file called ‘mozilla.cfg’ and copy in the following information:
//Firefox Default Settings
// set Firefox Default homepage
pref("browser.startup.homepage","http://www.itsupportguides.com");
// disable default browser check
pref("browser.shell.checkDefaultBrowser", false);
pref("browser.startup.homepage_override.mstone", "ignore");
// disable application updates
pref("app.update.enabled", false)
// disables the 'know your rights' button from displaying on first run
pref("browser.rights.3.shown", true);
// disables the request to send performance data from displaying
pref("toolkit.telemetry.prompted", 2);
pref("toolkit.telemetry.rejected", true);
  1. Create a new text file called ‘install.cmd’ and copy in the following information
@echo off
REM==========================================
REM Install FireFox 49.0.2
REM==========================================
REM Date   : 20 October 2016
REM Author : www.itsupportguides.com
REM .
REM Script Details:
REM --------------
REM  This script will:
REM       + silently install or upgrade Firefox 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       + Deletes desktop icon
REM       + Disables the Import Wizard
REM       + Works for Windows XP / 7 /8 32-bit and 64-bit
REM .
REM===========================================
echo Installing Firefox - Please Wait.
echo Window will close after install is complete
REM Installing Firefox
"%~dp0Firefox Setup 49.0.2.exe" -ms
REM Install 32-bit customisations
if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0override.ini" "%programfiles%\Mozilla Firefox\browser\"
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 Install 64-bit customisations
if exist "%ProgramFiles(x86)%\Mozilla Firefox\" copy /Y "%~dp0override.ini" "%ProgramFiles(x86)%\Mozilla Firefox\browser\"
if exist "%ProgramFiles(x86)%\Mozilla Firefox\" copy /Y "%~dp0mozilla.cfg" "%ProgramFiles(x86)%\Mozilla Firefox\"
if exist "%ProgramFiles(x86)%\Mozilla Firefox\" copy /Y "%~dp0local-settings.js" "%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref"
REM Removes Firefox Desktop Icon - Windows XP
if exist "%allusersprofile%\Desktop\Mozilla Firefox.lnk" del "%allusersprofile%\Desktop\Mozilla Firefox.lnk" /S
REM Removes Firefox Desktop Icon - Windows 7 / 8
if exist "%public%\Desktop\Mozilla Firefox.lnk" del "%public%\Desktop\Mozilla Firefox.lnk"
  1. Copy the Firefox install file, override.ini, mozilla.cfg, local-settings.js and install.cmd to your software package share
  2. SCCM-Firefox2
  3. You can now create your SCCM package or deploy the software by using install.cmd.

For more information on creating SCCM packages see SCCM – How to Distribute Software Packages.

More Firefox configurations:

Please refer to the following articles for some more common customisations:

Related Articles

199 comments on “Install and Configure Firefox 49 silently using SCCM

  1. I use a group policy startup cmd file for my domain computers. I call mine ‘firefoxinstallnn.cmd’. The ‘nn’ is the version number. It has a single line…

    “%~dp0Firefox Setup 27.0.exe” -ms

    I then follow it with another cmd file I call “firefoxadjust.cmd”.

    It has the following lines for Windows 7 64-bit computers…

    REM Install 64-bit customisations
    if exist “%ProgramFiles(x86)%Mozilla Firefox” copy /Y “%~dp0override.ini” “%ProgramFiles(x86)%Mozilla Firefox”
    if exist “%ProgramFiles(x86)%Mozilla Firefox” copy /Y “%~dp0override.ini” “%ProgramFiles(x86)%Mozilla Firefoxbrowser”
    if exist “%ProgramFiles(x86)%Mozilla Firefox” copy /Y “%~dp0mozilla.cfg” “%ProgramFiles(x86)%Mozilla Firefox”
    if exist “%ProgramFiles(x86)%Mozilla Firefox” copy /Y “%~dp0local-settings.js” “%ProgramFiles(x86)%Mozilla Firefoxdefaultspref”

    These scripts are run from a domain network share such as NETLOGON.

    I hope this helps….

  2. This is great for installing firefox but not setting it as the default browser.

    Is there any way TO set it Firefox as the default browser? Either at first run or (preferably) during install?

    I’ve been unsuccessful in my attempts to find out how to do it.

    (Sorry if a double post… not sure if it worked before)

  3. You need override.ini in TWO places.

    if exist “%ProgramFiles(x86)%Mozilla Firefox” copy /Y “%~dp0override.ini” “%ProgramFiles(x86)%Mozilla Firefox”

    if exist “%ProgramFiles(x86)%Mozilla Firefox” copy /Y “%~dp0override.ini” “%ProgramFiles(x86)%Mozilla Firefoxbrowser”

    I just tested it and it works.

  4. Hey there Sean

    While I won’t be able to speak to (or otherwise address) everything in your comment, I’ll attempt to help where I can, especially considering I’m very new to SCCM.

    Installation:
    I use a batch file that runs the Firefox install with a few switches and points to an INI:

    [i]start /w “Firefox Install” “%~dp0!setupfile!” -ms -cleanupOnUpgrade /INI=”%~dp0..configapconfig.ini”
    [/i]
    Note: I think the key here may be to use ‘start’

    The batch file also creates the necessary directories (defaultsprofileschrome and defaultspreferences etc) for the various files (userChrome.css, auto.cfg, autoconfigfile.js, override.ini) as well as a few other things (deleting the Mozilla service for instance).

    I tested the batch file prior to adding it to SCCM in order to confirm the batch was sound. The installation completed successfully, Firefox worked as I expected it to so I brought it into SCCM.
    Once added to SCCM, under Deployment Types > Properties > Detection method > The clause is set to check for [i]helper.exe[/i] in [i]C:Program FilesMozilla Firefoxuninstall[/i] and deployed to a test machine.

    That should [hopefully] result in a successful installation

    For customizing Firefox’s options, I recommend you check the links Zefy suggested.
    You can take a look at one of my customized cfg file here: [url]https://support.mozilla.org/en-US/questions/966143[/url]

  5. Sean, have you looked into this site –

    [url]http://kb.mozillazine.org/Locking_preferences[/url]

    or

    [url]http://support.mozilla.org/en-US/questions/934792[/url]

    [quote name=”Sean”]I am in an enterprise environment and I am having an issue with the install of Firefox 21.0 not completing properly. It just sits in the software center saying installing, yet has completed successfully and tested working. Any ideas ?

    Second thing … is there an option for the mozilla.cfg file to enable a plug in on a certain website so that the user is never prompted to activate or update? We are forced to use an older version of Java 6 up 37 and when you go to our site we need to it always prompts to activate and then attempts to update it. An update cannot happen because the site will not work with a higher version of java. So after enabling click to play in the .cfg file I am after some work able to allow the plug in to work and it finally gets by the check … but is there a way to include that in the .cfg file for the install ?[/quote]

  6. I am in an enterprise environment and I am having an issue with the install of Firefox 21.0 not completing properly. It just sits in the software center saying installing, yet has completed successfully and tested working. Any ideas ?

    Second thing … is there an option for the mozilla.cfg file to enable a plug in on a certain website so that the user is never prompted to activate or update? We are forced to use an older version of Java 6 up 37 and when you go to our site we need to it always prompts to activate and then attempts to update it. An update cannot happen because the site will not work with a higher version of java. So after enabling click to play in the .cfg file I am after some work able to allow the plug in to work and it finally gets by the check … but is there a way to include that in the .cfg file for the install ?

Leave a Reply

Your email address will not be published.