如何创建可部署的 ActiveX 控件?

发布于 2024-09-12 06:54:47 字数 451 浏览 2 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一人独醉 2024-09-19 06:54:47

如果您的 ActiveX 是单个文件,那么您可以通过在对象标记中设置它来将其下载给用户,

<object classid="clsid:your-dll-classid" codebase="http://someurl/your.dll" ></object>

如果用户系统上不存在该文件,IE 将下载该文件。

If your ActiveX is a single file then you can have it downloaded to the users by setting it in the object tag

<object classid="clsid:your-dll-classid" codebase="http://someurl/your.dll" ></object>

IE will download the file if it doesn't exists on the user's system.

贱贱哒 2024-09-19 06:54:47

要了解有关打包 ActiveX 控件的更多信息,请参阅
MSDN

To know more about packaging ActiveX control see
MSDN

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文