部署浏览器助手对象 [英] Deployment of a Browser Helper Object
问题描述
在开发过程中,我使用以下命令对其进行了测试:
C:\Windows \Microsoft.NET\Framework\v2.0.50727\regasmplugin.dll
C:\Programme\Microsoft SDKs\Windows\v6.0A\bin\gacutil / ifplugin.dll
现在我想用Microsoft WiX Toolkit创建一个MSI安装程序。
但我不知道需要哪个注册表项。我记录从regasm写的所有条目,但它不工作,因为plugin.dll必须在全局程序集缓存中。某些文件夹如C:\WINDOWS\assembly\GAC_MSIL\plugin\1.0.0.0__ec146fd6848c0024
任何想法如何安装IE BHO?
现在我没有SpicIE框架。我遵循本教程: http://www.codeproject.com/KB/cs/Attach_BHO_with_C_.aspx?fid=447248&df=90&mpp=25&noise=3& ; sort = Position& view = Quick& fr = 51& select = 2421069
如果我使用regasm / codebase注册dll。 >
如果我想安装它与一个msi安装程序(WiX工具集)它不工作:(
我取消注册的dll,搜索注册表我的GUID - >我从注册表中清除所有内容,然后从注册表中创建快照,运行regasm命令并创建第二个快照,然后比较快照并创建一个wix文件,插入所有添加的注册表项,不起作用。我不能通过安装程序运行...
任何想法?
到第二个EricLaw的评论,SpicIE不是为生产使用(请参阅我在code.msdn.com页面上添加的免责声明)。加载时间是非常糟糕的(你会注意到有时需要花费4秒的时间来旋转必要的库),整个项目是为了证明概念而设计的。
如果您需要在生产环境中使用.NET进行BHO构建,那么Code Code(codeproject.com)上有一些很好的轻量级示例,可以帮助您开始。否则,代码项目以及MSDN提供了一些很好的C ++示例。
如果您有详细的问题,请随时与我联系(以下+ @ microsoft.com) 。
谢谢!
mattcrow [msft]
I wrote an IE Plugin with the .NET SpicIE Framework.
During development I tested it with the following commands: "C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm" "plugin.dll" "C:\Programme\Microsoft SDKs\Windows\v6.0A\bin\gacutil" /if "plugin.dll"
Now I want to create an MSI Installer with the Microsoft WiX Toolkit.
But I don´t know which Registry Entrys are Required. I record all the entries written from regasm but it isn´t working because the plugin.dll have to be in the global assembly cache. Some folder like C:\WINDOWS\assembly\GAC_MSIL\plugin\1.0.0.0__ec146fd6848c0024
any ideas how to install an IE BHO?
now I do it without the SpicIE framework. I followd this tutorial: http://www.codeproject.com/KB/cs/Attach_BHO_with_C_.aspx?fid=447248&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=51&select=2421069
If I register the dll with regasm /codebase it works.
If I want to install it with an msi-installer (WiX toolset) it dont work :( I unregister the dll, search the registry for my GUID -> I clean all out from the registry. After that I make a snapshot from the registry, run the regasm command and make a second snapshot. Then I compared the snapshots and create a wix-file witch inserts all the added registry keys. It dont work. I cant make it run via the installer...
any ideas?
To second EricLaw's comment, SpicIE is not meant for production use (see the disclaimer I added on the code.msdn.com page). Load times are abysmal (you'll notice it takes up to 4 seconds sometimes to spin up the necessary libraries), and the whole project was designed to be for proof-of-concepts.
If you need to use .NET for BHO construction in a production environment, there are some good, lightweight examples on The Code Project (codeproject.com) that can get you started. Otherwise, Code Project, as well as MSDN, offer some good C++ examples.
Feel free to contact me (alias below + @microsoft.com) if you have detailed questions.
Thanks! mattcrow [msft]
这篇关于部署浏览器助手对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!