You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



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.

  • Edit the file config.ini and add the following text at the end of the file:
  • For our example, the name of our XPI is ibmcck.xpi and the ID from install.rdf is IBM-cck@firefox-extensions.ibm.com
    [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.