如何创建可部署的 ActiveX 控件?
我使用 Visual Studio 2010 编写了一个简单的 ActiveX 控件。我已使用 regasm 在我的开发计算机上注册了该控件,并且我可以使用 Javascript 的 new ActiveXObject("...")
在 IE 中调用该控件。功能。
但是,我现在需要准备 ActiveX 控件以部署给客户,这就是我需要帮助的地方。
我想打包该控件,以便 IE 只需在信息栏中提示用户安装该控件。
我了解我需要获取代码签名证书才能信任我的 ActiveX 控件。
我的问题是,将代码转变为可部署的软件单元需要执行哪些步骤? CAB文件、INF文件、OSD文件等在此起什么作用?如何使用 Visual Studio 2010 打包我的控件?
如果有任何现有的演练指南,我将非常感激能够指出他们的方向 - 我自己还无法找到全面且易于遵循的指南。
非常感谢。
I have written a simple ActiveX control using Visual Studio 2010. I have registered this control on my development machine using regasm, and I can invoke the control in IE using Javascript's new ActiveXObject("...")
functionality.
However, I now need to prepare my ActiveX control for deployment to the customer, and this is where I need assistance.
I would like to package the control so that IE simply prompts the user in the infobar to install the control.
I understand that I will need to obtain a code signing certificate so that my ActiveX control will be trusted.
My question is, what are the steps I need to work through to turn my code into a deployable unit of software? What role do CAB files, INF files, OSD files etc play in this? And how do I package up my control using Visual Studio 2010?
If there are any existing walk-through guides out there, I would be very grateful to be pointed in their direction - I haven't been able to find a comprehensive and easy-to-follow guide myself.
Many thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您的 ActiveX 是单个文件,那么您可以通过在对象标记中设置它来将其下载给用户,
如果用户系统上不存在该文件,IE 将下载该文件。
If your ActiveX is a single file then you can have it downloaded to the users by setting it in the object tag
IE will download the file if it doesn't exists on the user's system.
要了解有关打包 ActiveX 控件的更多信息,请参阅
MSDN
To know more about packaging ActiveX control see
MSDN