How can i set the name of IE Extension (BHO In IE)

2019-05-12 00:26发布

How Can i Set the Name of the BHO appear in IE Extension (e.g Manage Addons).. The Name that Appear in the Internet Explorer Addons list is the Namespace of my program when i attach it with regasm.exe. how can i set the name of that.?...

Thanks.

4条回答
等我变得足够好
2楼-- · 2019-05-12 00:59

I am working on a C# BHO, and was struggling with this very same question. If you're working with C#, one approach that can be taken is to add code similar to the following in the method that is marked with the ComRegisterFunction attribute. This will set the appropriate registry key value so that the name that you desire will be reflected in the Manage Add-Ons screen.

using (key = Registry.ClassesRoot.CreateSubKey("CLSID\\" + type.GUID.ToString("B")))
{
    key.SetValue(string.Empty, "My BHO Name Here");
}
查看更多
姐就是有狂的资本
3楼-- · 2019-05-12 01:00
  1. Include a VERSIONINFO resource.
  2. Sign your DLLs.
查看更多
看我几分像从前
4楼-- · 2019-05-12 01:09

No way to set the name? The name showing in the "Manage Add-Ons" window seems to be picked up from the BHO's C# class fully qualified name.

查看更多
狗以群分
5楼-- · 2019-05-12 01:13

This information is stored in .rgs file in your project. Look for a string like

ForceRemove {29DFE920-26AD-4377-8FCB-0E7A34A41199} = s 'NameIEBHO Class'

查看更多
登录 后发表回答