Wednesday, May 7, 2008
These posts have been moved to http://binaryturf.com and the customization guide for Firefox on Windows is at http://binaryturf.com/enterprise-build-of-firefox-for-deployment/
All the updates will be followed there. Please update your bookmarks.
Tuesday, December 26, 2006
I have not been able to keep in touch with the deployment lately owing to the changes in the installer system. Also many extensions that i planned for deployment are too old so the configuration is not updated. I plan to make a fresh start to be able to guide the sysadmins on how to make a preconfigured deployable build in a few steps very soon.
Do not forget to subscribe to the rss feed here.
Wishing you all a Very Happy New Year :)
Sunday, December 24, 2006
A deployable build may be made in 3 steps: -
- Customising default settings and perferences and saving them (for use in the final build).
- Compiling the source into a build.
- Creating a custom installer.
Before starting you should be comfortable compiling Firefox on your own (or see http://developer.mozilla.org/en/docs/Build_Documentation)
There are sub-stages of these and we will be going through them one at a time.
What you want to achieve: -
- Deploy options for Firefox (prefs.js, userchrome.css, usercontent.css)
- Deploy extensions/themes
- Deploy settings for extensions (prefs.js)
- Lock down all/some of the settings (updates to extensions/ app, uninstallation of extensions)
- Deploy search-plugins (eg. a custom search-plugin for a Knowledgebase in your Org.)
- Deploy bookmarks
- Deploy user-interface customisations. (like toolbar settings)
- A custom namespace icon (Windows only)
- Customise the help page(s).
- Name of your Org in the title bar.
- Let's begin with customising the default preferences.
- Download the official Firefox installer and install it into the default location (“%PROGRAMFILES%\Mozilla Firefox”) (make sure you chose to un/install the DOM Inspector /QFA as required). Don’t run Firefox yet.
- Back up the directory where Firefox is installed.
- Use a command prompt and change into directory where firefox.exe resides and run “firefox –p” (without quotes). The command prompt will let us use these options for creating and using different profiles while we configure the settings.
- Create a special profile at: “C:\Program Files\Mozilla Firefox\defaults\profile”. This will enable us to configure the default profile.
- Start firefox with this profile using “firefox –p” (without quotes). Configure as many preferences and settings you can. Use about:config to tweak advanced prefs and use the options dialog to set general settings. Install extensions and themes of your choice (don’t restart firefox yet).
- Close Firefox and create a backup of the profile directory.
- Back at the command prompt, create a new Firefox profile at the default location (“%APPDATA%”)
- Configure preferences for extensions, the theme in use, toolbar settings, install other search plugins, configure bookmarks, userchrome.css, usercontent.css.
- Copy lockstore.rdf and bookmarks file from this new profile to the default profile (C:\Program Files\Mozilla Firefox\defaults\profile).
- Copy the extensions to C:\Program Files\Mozilla Firefox\extensions.
- Copy the chrome folder from the new profile to the default profile
l. Move the contents of folder “searchplugins” from the new profile to “C:\Program Files\Mozilla Firefox\searchplugins”.
m. To lock uninstallatin of extensions from the global extensions dir, you’ll have to edit the install.rdf of the extension and insert
n. To disable update and compatibility check you’ll have to edit the install.rdf and insert
o. Remove obsolete files from the default profile. You should finally have the following files in your default profile.
C:\Program Files\Mozilla Firefox\defaults\profile>dir /s
Volume in drive C has no label.
Volume Serial Number is E4B4-8771
Directory of C:\Program Files\Mozilla Firefox\defaults\profile
04/12/2006 02:12 AM .
04/12/2006 02:12 AM ..
04/12/2006 02:12 AM 20,776 bookmarks.html
04/12/2006 02:12 AM chrome
04/12/2006 02:12 AM 5,092 localstore.rdf
04/12/2006 02:12 AM 618 mimeTypes.rdf
04/12/2006 02:12 AM 6,411 prefs.js
04/12/2006 02:12 AM 3,287 search.rdf
6 File(s) 36,302 bytes
Directory of C:\Program Files\Mozilla Firefox\defaults\profile\chrome
04/12/2006 02:12 AM .
04/12/2006 02:12 AM ..
04/12/2006 02:12 AM 1,078 userChrome-example.css
04/12/2006 02:12 AM 2,909 userchrome.css
04/12/2006 02:12 AM 663 userContent-example.css
04/12/2006 02:12 AM 978 userContent.css
4 File(s) 5,628 bytes
Total Files Listed:
10 File(s) 41,930 bytes
5 Dir(s) 268,378,112 bytes free
- Half the battle is won. Get ready to compile Firefox.
- Build Firefox: - Go through my batch file and know which lines in teh particular files have been modified to suit ur organisation. This file does the following: -
- Creates a temp dir for our exclusive use (we’ll use this to copy our customised extensions searchplugins etc)
- Sets environment variables.
- Extracts source
- Creates .mozconfig
- Copy and merge default & your custom plugins into a temp dir and creates a list.txt file for them (list.txt is required for the source to build).
- Modify source files (if you are comfortable).
- Copy plugins as required
- Copy customised profile.
- Copy extensions
- Copy activex files
- Copy msvcrts (I’ve modified a source file to package msvcrts and they are required to package the installer).
- Convert unix files to DOS format.
- Make installer.
- Make package.
- Edit config.ini (in objdir\dist\install) in easy steps: checkout my config.ini
- Setup type auto, normal, silent.
- Required components (I want to disable QFA and install ADT).
- Make a custom installer with the following files
- I’m using install.vbs to trigger the install and then icon.exe to build a namespace icon and copying mozicon as Mozilla Firefox.lnk to create similar shortcut in the quick launch bar and Start Menu
- You may want to do a little research on MOZ_NO_REMOTE on google.
This guide is not complete and will need a lot of feedback to improve. Please checkout if this works for you.