為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 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