Putting the Firefox 1.5 CCK in a Windows Installer pacakge
Once you have an XPI file with your customizations, you can modify Firefox to install it as part of the normal Firefox install on Windows. Note that this process will only work with the actual CCK XPI. You cannot install an XPI that contains additional themes and extensions this way.
Obtain 7-zip from http://www.7-zip.org/.
Using 7-Zip, unpack the files from Firefox Setup 1.5.exe
into a directory. Copy your XPI file into this directory.
config.ini
and add the following
text at the end of the file:[Uncompress File0] Timing=post xpcom Source=[XPI PATH]\ibmcck.xpi Destination=[SETUP PATH]\extensions\IBM-cck@firefox-extensions.ibm.com Message=Installing CCK... Only If Exists=FALSE
If you are using Firefox 1.5.0.1 or Firefox 1.5, you should use [Uncompress File1] instead of [Uncompress File0].
Note you can also change some of the references to Mozilla Firefox in this file to mention your custom edition. For instance, this line will change the name of the folder that is created on the desktop:
Path=[PROGRAMFILESDIR]\Mozilla Firefox
Do NOT change Company Name
,
Product Name
, or ProductNameInternal
as this will
cause Firefox to not function correctly.
You can now test your install by simply running
setup.exe
.
If you want to ship your customized Firefox as a single executable, you can follow the instructions of Creating a Localized Installer. Creating this file is beyond the scope of this document.
If you want a silent install, you can change the line
Run Mode=Normal
to Run Mode=Silent
.
If you want an install
that shows progress but does not require user interaction, you can change the line
Run Mode=Normal
to Run Mode=Auto
.