Now we have a toolbar for Internet Explorer and Firefox, but how do we get them installed? There is only one installation tool I’m using also for all my other products that can do almost everything: Inno Setup. Here is what you need for the installation of both toolbar versions.

Mozilla Firefox Toolbar Installation

Again it is much easier to install a new toolbar for the Firefox browser. You only need to copy your XPI file to the Firefox extension directory. The toolbar will then be installed at the next browser start. So we need only one additional Pascal function in our Inno Setup code to figure out the extension directory of Firefox:

Microsoft Internet Explorer Toolbar Installation

To install the toolbar for the Internet Explorer we first have to register the strongly-named assembly in the Global Assembly Cache (GAC) by using the gacinstall flag of the file section provided in the current Inno Setup version. Additionally we need to make quite a few registry changes. You can copy the following code into the registry section of your Inno Setup script and replace all variables by your own values (I’ve shortened the Inno Setup syntax a little bit to get it more compact):

To not write useless trash to the user’s computer, the registry changes should only be performed and the files only be copied if the .NET Framework 2.0 (or higher) is installed on the system, because this is needed for the Internet Explorer toolbar as already written above. You can check the availability of the .NET Framework 2.0 quite easy with following Pascal function:

These are the steps to create an Inno Setup installer for both toolbar versions. Of course, you can combine them in a single setup file that installs in Internet Explorer as well as the Firefox version depending on which browser is installed on the system.