从FireFox或命令行安装CAB文件 [英] Install CAB file from FireFox or command line
问题描述
我有一个包含几个DLL的CAB文件,一个OCX ActiveX控件,一个描述内容的OSD和一个用于安装DLL和ActiveX控件的INF。这些都是来自第三方,所以我不能控制任何东西,除了它们如何分发给客户端。
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.
它们正在Java applet中使用,工作交叉浏览器,但只有IE似乎支持实际安装CAB文件。
They are being used within a Java applet, and they work cross browser, but only IE seems to support actually installing the CAB file.
正在通过安装:
<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工作,我需要一个替代方法,或者我需要一个方法从命令行安装它,这将是一个合理的解决方法(然后可以设置一个安装程序来照顾它)。这需要通过Vista在XP上运行。
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.
任何帮助将非常感激。
编辑:
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.
推荐答案
好的,所以我终于找到了一个有用的网站:
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:
rundll32.exe advpack.dll,LaunchINFSectionEx .\xxxx.inf,,C:\path\to\xxxx.cab,4
我认为这会做我想要的。现在我只需要创建一个简单的安装程序,它应该都很好地绑在一起!
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!
这篇关于从FireFox或命令行安装CAB文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!