Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Automatic addons installation from command lind

  • 1 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 Matt

more options

Hi, Due to many system installation and changes I'm forced to setup Thunderbird. Is there a way to use command line to install addons. In Firefox I used downloaded addons as xpi which then I opened in Firefox. This work partially as I needed to click install button for each one. The same approach in Thunderbird failed. Copying xpi without name change to extensions folder also doesn't work. Only when I changed xpi to em:id from install.rdf TB noticed this addon and ask for installation during next startup.

Is this only solution? Do I have to extract em:id, rename xpi, copy it to extension and restart? Can I skip question for installation approval? Like always yes?

Hi, Due to many system installation and changes I'm forced to setup Thunderbird. Is there a way to use command line to install addons. In Firefox I used downloaded addons as xpi which then I opened in Firefox. This work partially as I needed to click install button for each one. The same approach in Thunderbird failed. Copying xpi without name change to extensions folder also doesn't work. Only when I changed xpi to em:id from install.rdf TB noticed this addon and ask for installation during next startup. Is this only solution? Do I have to extract em:id, rename xpi, copy it to extension and restart? Can I skip question for installation approval? Like always yes?

所有回覆 (1)

more options

are you trying to do this in a corporate environment or something? It is the only reason I can see for wanting to install add-ons using a more complicated method than dropping the XPI file into the add-on manager with a mouse.

The MDN does not appear to include any add-on installation options since Geko 1.9. See https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options


perhaps you could use javascript https://developer.mozilla.org/en-US/docs/Web/API/InstallTrigger