以 Windows 登錄碼安裝擴充套件
出自 MozTW Wiki
這篇文章說明 Firefox/Thunderbird 1.5 中新功能--以登錄碼安裝擴充套件的方法,學會本招有助於部屬 Fx/Tb。本文編譯自 Adding Extensions using the Windows Registry,在 devmo 有正體中文版時可能會移過去。
編譯開始--BobChao 04:37 2005年十月7日 (CST)
簡介
This document explains how to "install" Firefox and Thunderbird extensions using the Windows Registry. This mechanism is designed to make it easier for third-party installers to register extensions with Firefox and Thunderbird.
Note The mechanism described in this document requires Firefox/Thunderbird 1.5 or later.
安裝
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.