How to set the publisher name in a BHO

…衆ロ難τιáo~ 提交于 2019-12-24 12:28:49

问题


I have written a BHO and a toolbar for Internet Explorer in C#. They are getting installed and working properly. In the manage add-ons window in IE8, I am able to see both my BHO and toolbar. But, the publisher name of both is set to "Control name is not available". How can I set the publisher name?


回答1:


Two things:

  1. Are you signing your .dll? You need to sign your modules as well as your installation package.
  2. Make sure your .dll has a VERSIONINFO resource in your .rc file. Here's the documentation which has a sample you can basically cut and paste.



回答2:


Signed your Dll. assemblyinfo file in .net the attribute [assembly: AssemblyCompany("add Publisher Name Here ")] GOES as publisher name in a BHO.. Thanks




回答3:


After set following info in AssemblyInfo.cs file build the DLL.

[assembly: AssemblyCompany("Your publisher name")]

When you register that DLL then use the following command.

regasm /register /codebase YourDLL.dll

Now it will show your publisher name in manage addon in IE.

Hope this make more sense.



来源:https://stackoverflow.com/questions/2763800/how-to-set-the-publisher-name-in-a-bho

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