windows版本的fire fox的插件所在注册表位置
2016-07-20 08:07
232 查看
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.0This 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_USERkey
in addition; this doesn't require Administrator privileges. Traditionally,
HKEY_CURRENT_USERis
a copy of everything in
HKEY_LOCAL_MACHINE. The Mozilla subkey is written under
HKEY_CURRENT_USER\Softwarealso.
However, always look at
HKEY_LOCAL_MACHINEfirst.
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.
相关文章推荐
- Gnuplot:绘图
- OpenCV配置于Qt软件
- JDK与JRE
- java输入天数,计算现在是开学第几周(以18周为例)
- Range Addition
- 699B - One Bomb
- 网络虚拟化
- Android之控件按下抬起变色样式
- java华氏温度与摄氏度的互相转换
- Android之获取控件的坐标
- 死锁产生的原因&&必要条件&&如何避免死锁
- 杭电OJ2030-汉字统计
- JSON 解析 网络 上 天气预报
- Android 圆形的TextView
- leetcode-283. Move Zeroes c语言
- [Ext4] Ext4文件系统分析系列文章
- [Ext4] Ext4文件系统分析系列文章
- [文章摘要] Stories in GeoTime
- Android 布局管理器
- linux笔记:linux常用命令-用户管理命令