创建CAB文件以用于IE的ActiveX安装 [英] Create CAB file for ActiveX installation for IE

查看:132
本文介绍了创建CAB文件以用于IE的ActiveX安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CABARC.exe创建了一个包含我的activex的cab文件。我还创建了一个.inf文件。我的inf文件如下所示:

I created a cab file that contains my activex using CABARC.exe. I also created an .inf file. My inf file looks like this:

[version]
    signature="$CHICAGO$"
    AdvancedINF=2.0
[Add.Code]
    MySetup.exe=MySetup.exe
[MySetup.exe]
    file-win32-x86=thiscab
    clsid={49892510-B520-4b35-8ADF-57084DD2F717}

我的html看起来像这样:

My html looks like this:

<object name="secondobj" style='display:none' id='TestActivex'  
 classid='CLSID:49892510-B520-4b35-8ADF-57084DD2F717' 
 codebase='http://myurl/MySetup.cab#version=1,0,0,0'></object>

我使用以下命令创建了CABARC:

I created the CABARC using the following commmand:

C:\tools\Cab\BIN>CABARC.EXE N MySetup.cab MySetup.msi setup.inf

我还向受信任的站点添加了 http:// myurl 。现在,当我第一次在IE中打开html页面时,我看到一个黄色的条,我接受了。但是,它从未安装过activex控件。我没有在程序文件中看到安装,也没有在事件日志,临时下载文件夹或管理附件中看到任何内容。现在,每次我在IE中打开网页时,都不会再看到黄色条。

I also added http://myurl to the trusted sites. Now the first time I opened the html page in IE, I saw a yellow bar, which I accepted. However it never installed the activex control. I dont see the installation in my program files nor can I see anything in the event logs or in the temporary download folder or in the "manage add-ons". Now everytime I open the webpage in IE, I do not see the yellow bar anymore.

有人可以帮我吗?

推荐答案

就像我的.inf关闭一样。这是对我有用的东西:

It looks like my .inf was off. Here is what worked for me:

[version]
Signature="$CHICAGO$"
AdvancedINF=2.0

[Setup Hooks]
hook1=hook1

[hook1]
run=msiexec.exe /i "%EXTRACT_DIR%\MySetup.msi" /qn

要制作出租车:

CABARC.EXE N MyActiveX.cab MySetup.msi setup.inf

这篇关于创建CAB文件以用于IE的ActiveX安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆