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 ?
- 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".
Thx a lot in advance !
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.i
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.def
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
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?
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)
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).