The purpose of this document is to create a silent install for Firefox Mozilla 10( or higher verison).  This document also describes how to: 

  • Disable the 'Check default browser on startup' option
  • Disables the 'Automatically check for updates' option
  • Disables the 'Always check to see if Firefox is the default browser on startup' option
  • Sets homepage to "http://your.intranet.com"
  • Disables the 'know your rights' button from displaying on first run
  • Disables the request to send performance data from displaying
  • Do Proxy server settings
  • Disabling bookmark import wizard   

To achieve given above tasks, we need to create following three files:

  1. Override.ini : This file is used to disable the "Bookmark Import Wizard" only.

        Create a text file called 'override.ini' and copy in the following information:
      [XRE]
      EnableProfileMigrator=false

        N.B. In version 21, the import Wizard can be suppressed by placing the override.ini in <ProgramfilesFolder>\Mozilla                      Firefox and <ProgramfilesFolder>\Mozilla Firefox\Browser. 
               http://mike.kaply.com/2013/05/13/more-major-changes-coming-in-firefox-21/
  
       2.  local-settings.js :
             This file is used to tell the application to load the lock file. This file is generally used to lock down proxy settings which are mentioned in the  'mozilla.cfg' file.

         Create text file called 'local-settings.js' and copy in the folling information:
       pref("general.config.obscure_value", 0);
       pref("general.config.filename", "mozilla.cfg");


       3.  Mozilla.cfg :
              This file is an encoded file of javascript commands. Some of the common settings done is listed below. Also settings can be locked using command "lockPref". Command pref just loads the settings assigned. If more settings are needed to be changed or customized, please refer this link : http://www.pcc-services.com/kixtart/firefox-lockdown.html. Create a text file called 'mozilla.cfg' and copy in the following :
     

  
//Firefox Default Settings
 
// set Firefox Default homepage
pref("browser.startup.homepage","http://your.intranet.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);

//Firefox Default Settings
//set proxy server settings, choose whatever is required by your organization
pref("network.proxy.ftp", "your.proxy.server");
pref("network.proxy.ftp_port", 8080);
pref("network.proxy.gopher", " your.proxy.server ");
pref("network.proxy.gopher_port", 8080);
pref("network.proxy.http", " your.proxy.server ");
pref("network.proxy.http_port", 8080);
pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, *.server.local");
pref("network.proxy.type", 1);
pref("network.proxy.share_proxy_settings", true); // use the same proxy settings for all protocols

 


4. Install.cmd :
This file is used to silently install appplication and copy the 3 files to their specific location.
Create a text file called 'install.cmd' and copy in the following lines of code

 
REM Install Firefox 11.0 in Silent mode
"%~dp0Firefox Setup 11.0.exe" -ms
 
REM Install 32-bit customisations
if exist "%programfiles%\Mozilla Firefox\" copy /Y "%~dp0override.ini" "%programfiles%\Mozilla Firefox\"
if exist "%programfiles%\Mozilla Firefox\Browser\" 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\"
if exist "%ProgramFiles(x86)%\Mozilla Firefox\Browser\" 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\"