views:

73

answers:

2

I am trying to install a firefox xpi silently through an msi installer. I am doing so by the following method:

Unzip my xpi in some temp dir and copy all the contents of that to the %APPDATA%\Mozilla\Firefox\Profiles\xxxx.default\extensions\

I expected the addon to be available the next time my firefox opens, but I am not able to get it. Can someone tell me if there is more to be done for a silent install of firefox addons?

Kapil

+1  A: 

The key is the name of the folder you are placing inside the extensions folder, it has to be called as the extension id (which is defined inside the install.rdf file).

Also note that this will not be a completely silent install, the addon install dialog will warn the user the next time Firefox is started with that profile that a new extension has been installed.

fms
This is not the ideal way to do this as it may be removed in future versions.
sdwilsh
sdwilish, then how should one go ahead with a silent install? Are you saying that we might not be able to install silently at all in the future versions? That would be bad!
Kapil
A: 

You want to add your add-on via the windows registry.

sdwilsh