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:
- 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\"
We'll be able to use these features to decrease end-user confusion by minimizing prompts. Thank you. - pazrax 12 years ago
http://it-grund.blogspot.com/2012/04/how-to-deployinstall-silently-and.html - tererecool 12 years ago
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 12 years ago
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 12 years ago
Other than that really cant help you out as I dont know how KACE deploys applications. - akki 12 years ago
http://www.frontmotion.com/Firefox/download_firefox.htm
This would help you in maintaining previous products too - akki 12 years ago
http://msiworld.blogspot.com.au/2012/01/packaging-mozilla-firefox-901.html - piyushnasa 12 years ago
http://www.klaus-hartnegg.de/gpo/msi_firefox.html - jatkins@njuhsd.com 12 years ago
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 11 years ago
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 12 years ago
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 11 years ago
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 11 years ago
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 10 years ago