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

2019-05-12 00:27发布

问题:

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.

回答1:

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");
}


回答2:

  1. Include a VERSIONINFO resource.
  2. Sign your DLLs.


回答3:

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.



回答4:

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

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