Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

customized setup for deployment of Firefox 4 : How to integrate addons & prefs (seems different than 3.6.x)

  • 7 replies
  • 80 have this problem
  • 2 views
  • Last reply by ovann86

more options

I'd like to silently install Firefox 4 using customized prefs, but it's seems different than the 3.6.x versions.

How does it work with the new "folder architecture" used in Firefox ?


  • For 3.6.x, using the -ms switch install Firefox silently, and i integrated addons & prefs by :

- copying pref.js + localstore.rdf + mimeTypes.rdf + content-prefs.sqlite + bookmarks.html to "localized\defaults\profile".

- extracting all *.xpi addons into the extensions install folder "nonlocalized\extensions".


  • For FF 4 the -ms still works, and i tried to copy my addons in "core\distribution\extensions\", but all of them do not install, and I don't see any "localized" or "profile" folder for the prefs..


Thx a lot in advance !

I'd like to silently install Firefox 4 using customized prefs, but it's seems different than the 3.6.x versions. How does it work with the new "folder architecture" used in Firefox ? * For 3.6.x, using the -ms switch install Firefox silently, and i integrated addons & prefs by : - copying pref.js + localstore.rdf + mimeTypes.rdf + content-prefs.sqlite + bookmarks.html to "localized\defaults\profile". - extracting all *.xpi addons into the extensions install folder "nonlocalized\extensions". * For FF 4 the -ms still works, and i tried to copy my addons in "core\distribution\extensions\", but all of them do not install, and I don't see any "localized" or "profile" folder for the prefs.. Thx a lot in advance !

Modified by tealc

All Replies (7)

more options

Hi guys, here are some informations that i found and combined. These preferences/customisations ARE TESTED and WORKING!!

First of all, extract your "Firefox Setup 4.0.exe"

Silent installation without desktop icon: Create a "nodesktop.ini" at the same place you can find the setup.exe (root directory after extraction) containing following text:

[Install]

DesktopShortcut=false


Run: Installationfolder\setup.exe -ms /INI="CompletePathToInstallationFolder\nodesktop.ini"

Disable Import Wizard: Create: InstallationFolder\core\override.ini containing:

[XRE]

EnableProfileMigrator=false

Many options have to be set in InstallationsFolder\core\defaults\profile\prefs.js These directories and the prefs.js File have to be created first. Then make following entries:

Use wpad:

user_pref("network.proxy.autoconfig_url", "YourWpad.dat"); user_pref("network.proxy.type", 2);

Set startup homepage:

user_pref("browser.startup.homepage", "http://www.YourPage.com/");

Don't show browser rights:

user_pref("browser.rights.3.shown", true);

Don't ask if FF should be default browser:

user_pref("browser.shell.checkDefaultBrowser", false);

Dont't show FF welcome homepage at first run:

user_pref("startup.homepage_welcome_url", "");

more options

thanks for your reply  :-)


I, too, have more information than before, here is what i did, hope this help everyone.


1 - Install FF4 on your machine and personalize it the way you want (some of these files will be used to customize the setup)

2 - As ibex8 said : extract the FF4 EXE file from Mozilla to a folder.

3 - To customize the FF4 setup, simply create a folder in <yourextractedfolder>\core\defaults\ named "profile".

4 - In this created folder, drop some files & folders from your existing customized FF4 installation, like pref.js, etc... to personalize it. You will find them in %appdata%\Mozilla\Firefox\Profiles\<randomtext.default>

Mine are : - addons.sqlite - chromeappsstore.sqlite - content-prefs.sqlite - extensions.sqlite - localstore.rdf - mimeTypes.rdf - permissions.sqlite - prefs.js - /!\ the entire addons folder named "extensions" (contains all the addons, some in XPI format, others can be extracted folders) - /!\ addons specific folders like "gm_scripts" , "ghostery" , "adblockplus" folders, if you have them...


5 -(optional)- To go deeper, you can create a new folder in core\defaults\profile\ named "Chrome". In this new folder, create a new file named "UserChrome.css" : it will be used to modify some FF4 elements like transparency (please use Google or else to get more information on it)


6 - Finally, run setup.exe -ms to install FF4 silently, or create a SFX RAR with "Setup=setup.exe -ms TempMode Silent=1 Overwrite=1" to gain space...


Tested & working perfectly. [-_-]

more options

Thanks for all this info :D

But uhm, I don't see any info about the automated install of extensions. Any suggestions on how to add those to a custom Firefox 4 install?

Modified by bartgrefte

more options

in the method i described in my previous post (100% working), in fact you have to install FF4 + extensions + prefs... on your local computer, the "usual" way,

then, to "import" these personalized settings you have to copy some files in the FF4 installation source (see these files in my previous post).

do some tests, it's 100% working.

like i said, "Install FF4 on your machine and personalize it the way you want", these settings will be copied to the FF4 install source.

(i didn't found any way to just silently install FF4 with the -ms switch with the *.xpi)

Modified by tealc

more options

just to make sure i got this right. I added my extensions, but i repackaged the setup.exe + core folder to a 7z file then created a SFX exe file from it. When I run it, it extracts (setup.exe + core) then when pressing on setup.exe it takes me to Firefox wizard and install my customized firefox.

The thing is that now i have two source files: the one in core and the one created from the installation. Is this normal?

Also, How can I install the browser without getting through the FireFox wizrd, just directly running firefox.exe

Thanks in advance

more options

1. To install FF silently, use the "setup.exe -ms" switch.

I use WinRAR, so in my SFX file i set that :

Setup=setup.exe -ms TempMode Silent=1 Overwrite=1

2. Why 2 source files ? Just run "setup.exe" with the -ms switch to install silently, and for the customization, in the core folder you make a folder named "default\profile" (which contains your profile, so it will be copied)

more options

This website has a detailed process for creating a customised deployment of Firefox 4 (for deploying to multiple computers on a network).

It includes:

  • Adding a proxy server for all users
  • Setting a default homepage for all users
  • Disabling auto-updates for all users

see: http://mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently.html