从 FireFox 或命令行安装 CAB 文件
我有一个 CAB 文件,其中包含一些 DLL、一个 OCX ActiveX 控件、一个描述内容的 OSD 以及一个用于安装 DLL 和 ActiveX 控件的 INF。 这些来自第三方,所以除了如何将它们分发给客户端之外,我无法控制任何事情。
它们在 Java 小程序中使用,并且可以跨浏览器工作,但似乎只有 IE 才支持实际安装 CAB 文件。
安装是通过以下方式完成的:
<OBJECT classid="clsid:actual-class-id-here" NAME="name"
width="0" height="0" codebase="xxxx.cab#Version=w,x,y,z">
<param name="useslibrary" value="xxxx">
<param name="useslibrarycodebase" value="xxxx.cab">
<param name="useslibraryversion" value="w,x,y,z">
</OBJECT>
因此,我需要一种方法来安装可以跨浏览器运行的 CAB 文件。 由于上述内容只能通过 IE 运行,所以我需要一个替代方案,或者我需要一种从命令行安装它的方法,这将是一个合理的解决方法(然后我可以设置一个安装程序来处理它)。 这需要在 XP 到 Vista 上运行。
任何帮助将不胜感激!
编辑:从命令行安装将是首选,因为这样我就可以制定一个不特定于 IE、FireFox 或任何其他浏览器的解决方案。
I have a CAB file that contains a few DLLs, and an OCX ActiveX control, an OSD describing the contents, and an INF for installing the DLLs and ActiveX control. These are coming from a 3rd party, so I can't control anything except how they are distributed to the client.
They are being used within a Java applet, and they work cross browser, but only IE seems to support actually installing the CAB file.
The installation is being done via:
<OBJECT classid="clsid:actual-class-id-here" NAME="name"
width="0" height="0" codebase="xxxx.cab#Version=w,x,y,z">
<param name="useslibrary" value="xxxx">
<param name="useslibrarycodebase" value="xxxx.cab">
<param name="useslibraryversion" value="w,x,y,z">
</OBJECT>
So, I need a way to install this CAB file that will work cross browser. Since the above will only work via IE, I need an alternative, or I need a way to install it from the command line, which would be a reasonable workaround (I could then set up an installer to take care of it). This needs to work on XP through Vista.
Any help would greatly be appreciated!
EDIT: Installing from command line would be much preferred, as then I could do a solution that isn't specific to IE, FireFox, or any other browser.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,所以我终于找到了一个提供有用信息的网站:
http ://www.msfn.org/board/install-inf-file-c-t104891.html
我可能会使用生成的命令:
我认为这将完全满足我的要求。 现在我只需要创建一个简单的安装程序,它应该可以很好地结合在一起!
Ok, so I finally tracked down a website that gave something useful:
http://www.msfn.org/board/install-inf-file-c-t104891.html
And the resulting command I will likely use:
Which I think will do exactly what I want. Now I just need to create a simple installer, and it should all tie together nicely!