您的位置:首页 > 其它

windows版本的fire fox的插件所在注册表位置

2016-07-20 08:07 232 查看


本文转载自: http://www.cnblogs.com/xinyuyuanm/archive/2013/05/29/3106775.html

windows 版本的firefox 加载插件时是依附注册表中特定的键来肯定插件的路径的.

    一般的这个注册表位置是:HKEY_LOCAL_MACHINE\SOFTWARE\\MozillaPlugins\

    对于64为win7系统则是  :HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MozillaPlugins\




To find the plugins directory

Applicable to Netscape 6.1, 6.2.x, Netscape 7.0 (and up), Mozilla 1.0, and CompuServe 7.0

This section details the suggested mechanism to find out where to install the plugin DLL so that it is picked up by Mozilla based browsers on the desktop.
Go to 
HKEY_LOCAL_MACHINE\Software\Mozilla

Caveat Emptor: If the Mozilla subkey is not present under 
HKEY_LOCAL_MACHINE
,
look under 
HKEY_CURRENT_USER\Software\Mozilla\
. On Windows XP and Windows 2000,
in order to write to the registry, sometimes the software may need Administrator privileges.
Thus, some Mozilla based browsers, such as the Netscape 6 installer, write to the 
HKEY_CURRENT_USER
 key
in addition; this doesn't require Administrator privileges. Traditionally, 
HKEY_CURRENT_USER
 is
a copy of everything in 
HKEY_LOCAL_MACHINE
. The Mozilla subkey is written under 
HKEY_CURRENT_USER\Software 
also.
However, always look at 
HKEY_LOCAL_MACHINE
 first.
Enumerate the Mozilla subkey. Here you will find keys on a per-product basis. You can enumerate the application subkeys, e.g.
HKEY_LOCAL_MACHINE\Software\Mozilla\Productx.y\
.
The keys "Product x.y" contain application keys for the given Mozilla based browser. Example: Netscape 6 6.1\
Look at the Extensions subkey, e.g. 
HKEY_LOCAL_MACHINE\Software\Mozilla\Netscape
6 6.1\Extensions\

Access the Plugins value and value-data pair, e.g: 
Plugins
= C:\Program Files\Netscape\Netscape 6\Plugins
. You also have the Components value and value-data pair; this is for XPCOM
components. In addition, if you have made your plugin scriptable
and accessible from JavaScript, you ought to put the associated XPT file in the Components directory. You can access the Components value and value-data pair (telling you where the Components directory is) in a similar manner, e.g.: 
Components=C:\Program
Files\Netscape\Netscape 6\Components
. Future Mozilla based browsers won't distinguish between plugins and components, and will pick both up from a common location. However, for Netscape 6.1 and Netscape 6.2, XPT files, as well as XPCOM Plugins, ought
to go in the Components directory. On these browsers, this is the only directory that can "pick up" an XPT file, as well the only directory that can recognize XPCOM components.
You now have information about the Plugins directory for Gecko embedding browsers. Examples given for "Product x.y" were using Netscape 6 but other possible Mozilla based browsers exist as well; all Gecko-based
browsers are encouraged to write these keys, so that plugin vendors can write plugin installers that install correctly to all Gecko-based browsers.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: