Install and Configure Firefox 106 silently using SCCM

The following steps show how to create a silent install package of Firefox, complete with custom configuration.

Note: these settings will be applied for all new and existing users and can not be changed by users.

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.google.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

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.google.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 106.0.1
REM==========================================
REM Date : 23 October 2022
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 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 106.0.1.exe" -ms
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 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. 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:

Article Downloads

TIP: You may need to right-click and select 'save link as'.

Tagged in

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

  1. Hi HP:

    I’ve tested this process with Win 7 x64 and x86 when FF 6 is already installed and when FF is not already installed. Both times it works fine.

    Are you runing ‘install.cmd’ ‘as administrator’ ?
    Since ‘install.cmd’ needs to copy files to system folders it will need to be elevated to run successfully.

    For the purpose of Microsoft SCCM the ‘SYSTEM’ account is used, so the installation is already elevated.

    I suggest you download the full example (http://mockbox.net/downloads/Firefox801SilentInstall.zip) and install by right clicking on ‘install.cmd’ and selecting ‘Run as administrator’ to confirm it works in your environment.

    After that it’s up to you have to deploy it 🙂

    Good luck!

  2. Hi guys – after reading all your helpful posts I installed and configured Mozilla Firefox 7.0.1 using a combination of Mozilla.cfg for system wide settings (i.e user can’t change these) and prefs.js per-user settings (i.e user can change these).

    On my x64 Win 7 machine I placed the mozilla.cfg file in ‘C:Program Files (x86)Mozilla Firefox’ and created the other supporting files as per this article. I also created a ‘C:Program Files (x86)Mozilla Firefoxdefaultspref’ folder and placed my prefs.js file in there.

    I have added two new parameters to the Mozilla.cfg though:

    – pref(“browser.rights.3.shown”, true); this stops the ‘know your rights’ button from displaying on first run
    – pref(“toolkit.telemetry.prompted”, true); this stops the request to send performance data from displaying

    Contents of prefs.js should be int he following format i.e user_pref etc:

    //set proxy server settings to Auto Detect
    user_pref(“network.proxy.type”, 4);

  3. I keep getting a Configuration Error
    “Failed to read the configuration file. Please contact your system administrator.”

    I put more settings in mozilla.cfg
    lockPref(“browser.startup.homepage_override.mstone”, “ignore”);
    lockPref(“startup.homepage_override_url”, “”);
    lockPref(“startup.homepage_welcome_url”, “”);
    lockPref(“browser.rights.3.shown”, true);

    It works when I leave all this out.

    Thanks

Leave a Comment

Your email address will not be published. Required fields are marked *