/build/static/layout/Breadcrumb_cap_w.png

How to Package Mozilla Firefox 9.x or higher

 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\"
  



Comments

  • This is an excellent write up, thank you! - bkelly 11 years ago
    • Thanx bkelly... - akki 11 years ago
  • Outstanding, Akki!
    We'll be able to use these features to decrease end-user confusion by minimizing prompts. Thank you. - pazrax 11 years ago
    • Thanx buddy.. - akki 11 years ago
  • A tutorial for Firefox an many others can be found here
    http://it-grund.blogspot.com/2012/04/how-to-deployinstall-silently-and.html - tererecool 11 years ago
  • Very helpful indeed! - adilrathore 11 years ago
  • This is a great document but I find I can't get it to work. I am running it a script in KACE.

    One thing I noticed was a couple of mistakes in the text files. In this line
    // set Firefox Default homepage
    pref("browser.startup.homepage",""http://your.intranet.com"); There is an extra quotation mark in front of http:

    In install.cmd the last line needs a \ after the last pref
    ....."%ProgramFiles(x86)%\Mozilla
    Firefox\defaults\pref"

    Firefox installs fine and the files are copies to correct places, but the settings are not changed.

    I only put these lines in the mozilla.cfg
    //Firefox Default Settings

    // set Firefox Default homepage
    defaultPref("browser.startup.homepage","http://jeffcolibrary.org/staff");

    // disable default browser check
    defaultPref("browser.shell.checkDefaultBrowser", false);
    defaultPref("browser.startup.homepage_override.mstone", "ignore");

    // disable application updates
    defaultPref("app.update.enabled", false)

    // disables the 'know your rights' button from displaying on first run
    defaultPref("browser.rights.3.shown", false);

    // disables the request to send performance data from displaying
    defaultPref("toolkit.telemetry.prompted", 2);
    defaultPref("toolkit.telemetry.rejected", true);


    Does any one see an error there?

    I really really would like for this to work.

    Jane - jfrasier 11 years ago
  • Thanx Jane for pointing out these mistakes.
    Also I looked into the article and created packages using Firefox 9,10 and 11. It works fine and i had no problems at all.
    Also I`m completely unaware of how KACE works, so can you please tell me where are you facing the errors exactly. - akki 11 years ago
  • The settings in mozilla.cfg are not being set. - jfrasier 11 years ago
  • I cant be sure as to why they are not being set when used using KACE...just a suggestion can you use lockpref so the settings being applied gets locked.
    Other than that really cant help you out as I dont know how KACE deploys applications. - akki 11 years ago
  • I changed the mozilla.cfg to lockpref and now it works except for the' not showing browser rights' which I can live with. Thanks so much. I have struggled with this for a very long time, off and on. - jfrasier 11 years ago
  • I figured out the know your rights button. I had set it to false instead of true. - jfrasier 11 years ago
    • Thats really great...im gonna look into it again on "Know your rights" settings.......anyways happy to help you here :) - akki 11 years ago
  • This is truly great! Nice work. Is there a place that can apply these priciples on packaging firefox with AdminStudio? I having a heck of a time with it and removing previous versions in add/remove created with the mozilla .exe installer. - facemelt 11 years ago
    • You can get the packaged MSI for firefox from here:
      http://www.frontmotion.com/Firefox/download_firefox.htm

      This would help you in maintaining previous products too - akki 11 years ago
  • For Re-Packaging Firefox, you can follow this link:

    http://msiworld.blogspot.com.au/2012/01/packaging-mozilla-firefox-901.html - piyushnasa 11 years ago
  • Great write up when combined with this one:
    http://www.klaus-hartnegg.de/gpo/msi_firefox.html - jatkins@njuhsd.com 11 years ago
  • hey akki..

    can you say me, which "lockPref" command i need if i want to place the mozilla.cfg on a server?

    with
    "lockPref("autoadmin.global_config_url", "http://yourserver.companyname.com/mozilla.cfg");"
    it wont work :/

    i need help, cause i search since 2 days.. :/

    -Marsich- - marsich 10 years ago
  • Hello folks! I faced with a problem using mozilla.cfg. All settings applied successfully, but user can't change homepage. It was predefined as pref("browser.startup.homepage", "http://www.somesite.com"); I start Firefox -> Change homepage to www.anothersite.com but after relaunch, it open somesite.com again. Does anyone know the reason? Thnx in advance - duhaz 11 years ago
    • Hi Duhaz,
      Make sure that its not lockpref("browser.startup.homepage", "http://www.somesite.com"). As name suggests, you cant change this setting.
      If it is lockpref, change it to pref. - akki 11 years ago
  • I applied these changes to the FrontMotion Firefox.MSI and Vola!!

    We do not use proxy here so I pulled that section out of .CFG and did not add the local-settings.js file, and that did the trick.

    The Override.ini is not getting rid of Bookmark Imports thou... still trying to get to the bottom of that issue. - ekgcorp 10 years ago
  • here is the latest download page if anyone is interested... http://frontmotion.com/Firefox/download_firefox.htm - ekgcorp 10 years ago
  • If anyone is still using this Post to build Deployment of newer versions of Firefox (above version 21) Please see the following post... http://www.itninja.com/software/mozilla/firefox-2/21-67

    Basically, override.ini needs to be in both progfiles\Mozilla Firefox (as stated above), and it also needs to reside in sub directory "Browser" - ekgcorp 10 years ago
    • Thanx buddy...will update the blog :) - akki 10 years ago
  • http://gallery.technet.microsoft.com/Installing-Mozilla-Firefox-c8619873

    The above package created with PSAppDeployToolkit installs Mozilla Firefox within an enterprise environment. Note the version attached is Mozilla Firefox 30.0, so please change the Firefox-Setup.exe under the 'Files' folder as per your version need. Tested with Mozilla Firefox Version 30.0.

    Features:

    Option to turn ON and OFF automatic updates.
    Option to set the home page.
    Option to disable the 'Know your rights' window.
    Option to check and not check default browser during start-up.
    Uninstalls Mozilla Maintenance Service. - topazcaleb 9 years ago
This post is locked
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ