以 Windows 登錄碼安裝擴充套件
出自 MozTW Wiki
這篇文章說明 Firefox/Thunderbird 1.5 中新功能--以登錄碼安裝擴充套件的方法,學會本招有助於部屬 Fx/Tb。本文編譯自 Adding Extensions using the Windows Registry,在 devmo 有正體中文版時可能會移過去。
編譯開始--BobChao 04:37 2005年十月7日 (CST)
簡介
本文演示以 Windows 登錄碼 (Registry)「安裝」Firefox/Thunderbird 擴充套件的方法。此功能可以方便協力廠商的程式為 Firefox 或 Thunderbird 安裝套件。
注意 本文所描述的功能只在 Firefox/Thunderbird 1.5 以上版本有用。
安裝
Installation is performed by writing a Registry entry under one of the following keys:
HKEY_CURRENT_USER\Software\Mozilla\Firefox\Extensions HKEY_LOCAL_MACHINE\Software\Mozilla\Firefox\Extensions
For Thunderbird, replace Firefox
with Thunderbird
.
The ID of the extension must be used as the name of the Registry entry. The Registry entry must have a type of REG_SZ
, and its value must be an absolute path to the folder containing the extension. For example, to install the extension described here, create a Registry entry with name equal to sample@foo.net
and value equal to c:\extensions\myExtension
.
After the Registry entry is created, Firefox/Thunderbird will notice the change the next time it is launched. It is safe to modify the Registry keys while Firefox/Thunderbird is running.
If the same extension appears under both HKEY_CURRENT_USER
and HKEY_LOCAL_MACHINE
, then the instance under HKEY_CURRENT_USER
will be used. If the same extension appears in the user's profile directory (via manual install), then it will take precedence over any instances found in the Registry.
移除
Extensions installed using the Windows Registry may be uninstalled by simply removing their corresponding Registry entry. After the Registry entry is removed, Firefox/Thunderbird will notice the change the next time it is launched. It is safe to modify the Registry keys while Firefox/Thunderbird is running.