How can i set the name of IE Extension (BHO In IE)
How Can i Set the Name of the BH开发者_StackOverflow社区O 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.
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");
}
- Include a VERSIONINFO resource.
- Sign your DLLs.
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.
This information is stored in .rgs file in your project. Look for a string like
ForceRemove {29DFE920-26AD-4377-8FCB-0E7A34A41199} = s 'NameIEBHO Class'
精彩评论