Search code examples
firefox-addonmozillasilent-installer

Silent install of the firefox addon


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\<uniqueid-for-my-addon>

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


Solution

  • 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.