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,
    Thanks for this post.
    One Question… does the following way not longer work?
    – Extract the Firefox Setup
    – Copy the prefs.js file to the folder “coredefaultspref”.
    – Install setup exe -ms

    Thanks

  2. Hi netty967 –

    I didn’t know Firefox could handle automatic NTLM authentication!

    We have Sharepoint Intranet which uses NTLM authentication, so I did some testing and managed to get it working by adding the correctly formated settings into the ‘local-settings.js’ file.

    You can download my configured settings from here: [url]http://www.mockbox.net/downloads/Firefox50SilentInstall.zip[/url]

    You’ll need to make a few edits to suit your enviroment:
    [list][*]Proxy settings in ‘Mozilla.cfg'[/list]
    [list][*]Intranet URL in ‘local-settings.js'[/list]

    Also, we can access our Intranet using a DNS Record C NAME or the full URL – so I’ve added both in.

    Let me know how you go 🙂

  3. [quote name=”Casey Fipps”]
    What I can’t figure out is how to prepopulate security exceptions so that my users can get to various sites that are already trusted on the domain for IE without them having to go through lots of hoops.[/quote]

    pref(“network.automatic-ntlm-auth.allow-proxies”, true);
    pref(“network.automatic-ntlm-auth.trusted-uris”, “yoursite.org,othersite.com”)

    I am trying to edit the same type of settings in greprefs.js – extracted from omni.jar (not easily -and i don’t know if it will go back together)
    That is where all of the “old” files that used to be extracted from Firefox_ver_###.exe are now located, omni.jar.
    I am having a hard time adjusting to the new installation structure in 4. It used to be easy, extract files, edit preferences, bundle it back up, install it. I don’t see where further compacting the files critical to enterprise type modification is helping promote Firefox in the business world!
    Thanks Dev team!

    Oh – and I tried modifying in the manner that is outlined here – and I get a message that the preferences cannot be opened.
    Have fun everyone!
    Netty

  4. I followed some of the guidance on appdeploy.com for FireFox 4 and had no trouble setting the default home page and bypassing the first run page; used 7-zip and 7-ZIP SFX Maker to repackage so I don’t need a separate command file. For the home page setting, if you want your users to be able to change it, you need a file called prefs.js in ffdefaultsprofile that contains the line user_pref(“browser.startup.homepage”,”http://localhost”); if you don’t want your users to be able to change it put this same line in a file called user.js and it will overwrite their settings every time. Or you can use the above mentioned combination including mozilla.cfg and put lockpref(“browser.startup.homepage”,”http://localhost”); in that file.

    What I can’t figure out is how to prepopulate security exceptions so that my users can get to various sites that are already trusted on the domain for IE without them having to go through lots of hoops.

Leave a Comment

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