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

ⅰ亾dé卋堺 提交于 2019-12-22 09:56:14

问题


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'



来源:https://stackoverflow.com/questions/3763988/how-can-i-set-the-name-of-ie-extension-bho-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!