customized setup for deployment of Firefox 4 : How to integrate addons & prefs (seems different than 3.6.x)
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
Additional System Details
Just once or twice
This started when...
silently install Firefox 4 using custom settings
- Macromedia Authorware Web Player Netscape plug-in, version 2004
- Npdsplay dll
- Office Plugin for Netscape Navigator
- DivX® Web Player
- DRM Store Netscape Plugin
- DRM Netscape Network Object
- The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
- Adobe PDF Plug-In For Firefox and Netscape 10.0.0
- Default Plug-in
- NPRuntime Script Plug-in Library for Java(TM) Deploy
- Shockwave Flash 10.1 r102
- Adobe Shockwave for Director Netscape plug-in, version 18.104.22.1685
- Next Generation Java Plug-in 1.6.0_23 for Mozilla browsers
- User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b11) Gecko/20100101 Firefox/4.0b11
silent install of Firefox 4 using imported custom settings
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:
Run: Installationfolder\setup.exe -ms /INI="CompletePathToInstallationFolder\nodesktop.ini"
Disable Import Wizard: Create: InstallationFolder\core\override.ini containing:
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:
user_pref("network.proxy.autoconfig_url", "YourWpad.dat"); user_pref("network.proxy.type", 2);
Set startup homepage:
Don't show browser rights:
Don't ask if FF should be default browser:
Dont't show FF welcome homepage at first run:
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. [-_-]
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
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
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
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)
This website has a detailed process for creating a customised deployment of Firefox 4 (for deploying to multiple computers on a network).
- Adding a proxy server for all users
- Setting a default homepage for all users
- Disabling auto-updates for all users