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. [quote name=”Jack”]Hey. Awesome sites.

    Got two real quick questions site admin
    1. Whats the commando for changing the default download folder?
    2. I see mozilla released a new version, 12.0. Does it work with this as well?

    Many thanks.[/quote]

    Hi Jack,

    In the FireFox address bar type in “about:config” You will see a filter, key in “down” and hit enter. you should see the “browser.download.lastDir” You could try and add this as a pref in the “mozila.cfg” file.

    I can’t be sure but I would bet this deploy method would work for version 12, you might just have to start from scratch with the config files and such. Try it and let us know please.

  2. Hey. Awesome sites.

    Got two real quick questions site admin
    1. Whats the commando for changing the default download folder?
    2. I see mozilla released a new version, 12.0. Does it work with this as well?

    Many thanks.

  3. Hi Nicholas,

    I’m not aware of a completely automated way of handing the import process.

    You can choose to NOT include the ‘override.ini’ file. This would bring the Firefox startup wizard [u]the first time[/u] a user loads Firefox. The wizard will give them the option of importing favourites – but they must click ‘next’ to progress through the process.

    Of course the issue here is what if a user then uses Internet Explorer and saves new Favourites – these won’t be imported into Firefox again.

    If you haven’t already investigated, Internet Explorer saves Favourites in a folder, each favourite being a URL shortcut file. Where as Firefox saves the ‘Bookmarks’ in ONE database file. Automating some sort of conversion would be difficult.

    [i]The Firefox ‘Bookmarks’ are saved in the ‘places.sqlite’ file, which is saved in your personal Firefox profile folder (should be roughly %appdata%MozillaFirefoxProfilesl6fl0tug.default)[/i]

  4. I have been able to successfully install FF12 with the scripts / config files detailed above (on Win7 32 and 64 bit machines) but I also need to disable the Nav Bar. (I would ideally like to also disable the Firefox “Menu button” but I guess this might be asking too much…)

    I know you can store the preferences for the Nav Bar in the local-store.rdf but I would like it to be disabled the first time the user opens Firefox…

    Can you tell me if there is a “prefs” setting (or similar) for this?

    Thanks!!

Leave a Reply to Big Ed Cancel reply

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