简体   繁体   English

如何使用c#获取在Firefox和Internet Explorer中安装的扩展/加载项列表?

[英]How can I get list of Extensions/add-ons installed in Firefox and Internet Explorer using c#?

I want to get the list of all Extensions Installed in the browsers. 我想获取浏览器中安装的所有扩展的列表。

For IE I'm able to find only a few extensions in registry at 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Internet Explorer\\Extensions. 对于IE,我只能在注册表中的'HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ Internet Explorer \\ Extensions中找到一些扩展名。

For Firefox I located the place of profiles but not able to extract information from those profile. 对于Firefox,我找到了个人资料所在的位置,但无法从这些个人资料中提取信息。

If I enter "about:support" in address bar I am getting all information but not able to extract those information using c#. 如果我在地址栏中输入“ about:support”,则将获取所有信息,但无法使用c#提取这些信息。

When someone asks aa question, and then stackoverflow users ask them "Why"? 当有人问一个问题,然后stackoverflow用户问他们“为什么”? I feel they are taking it off topic. 我觉得他们正在摆脱话题。 Just answer the question if you know it. 如果您知道,请回答问题。 It's up to staff to decide if the topic should be removed due to malcontent. 由员工决定是否由于不满而删除该主题。 If you feel that strongly about it report it and let them do their job, rather then taking the question off topic. 如果您对此有强烈的想法,请报告并让他们完成工作,而不是将问题从话题中移开。

IE IE

I don't know 我不知道

Firefox 火狐

In the profiles folder there are two files. 在配置文件文件夹中有两个文件。 One is called addons.json and the other is extensions.json they are different somehow, I can't recall. 一个叫addons.json,另一个叫extensions.json,它们在某种程度上有所不同,我不记得了。 If you find out please share. 如果您发现,请分享。 But they contain the info on all installed addons (enabled/disabled/etc). 但是它们包含所有已安装插件(已启用/已禁用/等)的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM