将 ActiveX 组件部署为 msi 或 cab?
我正在尝试部署我的 dll(只是一个需要注册的 dll,仅此而已),但无法找出最佳方法。
CA 签名的 cab 似乎是更好的方法,因为它对用户来说似乎不是一个完整的程序,而且他只得到一个提示,但我面临以下问题:
- cab 已下载,然后出现黄色条。我想告诉用户“只需单击此处允许”之类的信息,但我如何知道黄色条已经显示或者出租车是否仍在下载?我可以检查它是否以某种方式用 javascript 显示吗?
我遇到的 MSI 问题是,安装 dll 并注册后,用户仍然会收到黄色条,并且必须接受该网站的组件,但我不明白为什么这种情况不会发生,当我从 Cooliris.com 或 quakelive.com 安装附加组件 - 我安装他们的 MSI,仅此而已。我如何通过 MSI 实现这一目标?为什么他们使用 MSI 而不是出租车?
顺便说一句,我的dll仅用于一个网站。
I'm trying to deploy my dll (just a dll that needs to be registerd, nothing else) but cannot figure out the best way to do it.
A CA signed cab seems to be the nicer way to do it, since it doesn't seem like a full program to the user and he only gets one prompt, but I'm facing the following problem:
- the cab is downloaded, then the yellow bar appears. I would like to tell the user something like "simply click allow up here", but how do i know that the yellow bar is already being shown or if the cab is still being downloaded? Can i check if it's displayed with javascript somehow?
The problem I'm facing with an MSI is that after installing the dll and registering it, the user still gets the yellow bar and has to accept the component for this website, but i don't understand why this doesn't happen, when i install the add-on from cooliris.com or quakelive.com - i install their MSI and that's that. How can i achieve that with an MSI? And why do they use an MSI instead of a cab?
By the way, my dll is just used for one website.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法从 Javascript 访问信息带状态,但您可以尝试在 try 块内实例化您的控件,如果您捕获异常假设信息带正在显示,并显示类似“如果该控件未加载,请单击此黄色带。”并考虑添加“单击此处获取更多帮助”链接。
我认为这是你能做的最好的事情。
至于你最初的问题:是的,我会选择 .cab,除非你绝对需要 .msi。
祝你好运。
You can't access Information Band state from Javascript, but you can try to instantiate your control inside a try block, and if you catch an exception assume the Information Band is showing, and display something like "If the control isn't loading, click this yellow band." And consider adding a "Click here for more help" link.
I think that's the best you can do.
And as to your original question: yes, I would shoot for a .cab unless you absolutely need an .msi.
Good luck.