带有CAB文件的ActiveX部署 [英] ActiveX deployment with a CAB file

查看:130
本文介绍了带有CAB文件的ActiveX部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我已经创建了一个ActiveX和一个MSI文件来安装它,如果手动安装它,它在Internet Explorer 8中也可以正常工作.

我还用这样的INF创建了一个CAB文件:

[版本]
signature ="$ CHICAGO $"
AdvancedINF = 2.0
[设置挂钩]
hook1 = hook1
[hook1]
run = msiexec.exe/i""%EXTRACT_DIR%\ IAGActiveXNetSetup.msi""/qf

因此当用户访问我的网页时,会自动安装ActiveX.发生这种情况时,将执行安装程序,并完成安装,但不会将ActiveX加载到网页中.我必须关闭Internet Explorer并重新打开它才能加载activeX控件.

我第一次访问该网页时遇到的错误是

***代码下载日志条目(2010年1月5日@ 14:46:11)***
代码下载错误:(hr = 80070002)El sistema no puede encontrar el archivo especificado.

手术失败.详细信息:
代码库:http://localhost/iag/dotnet/bin/IAGActiveXNet.cab
CLSID:{577BF17F-B59A-4DA5-965E-7834044030B3}
扩展名:
类型:

日志:安装挂钩Hook1已成功执行.
---详细的错误日志如下---
日志:下载名为(hrStatus = 0/hrResponseHdr = 0)的OnStopBinding.
日志:URL下载完成:hrStatus:0,hrOSB:0,hrResponseHdr:0,URL:(http://localhost/iag/dotnet/bin/IAGActiveXNet.cab)
日志:安装挂钩Hook1已成功执行.
日志:安装程序成功安装:IAGActiveXNet.inf到(空)目标代码(0)
日志:报告代码下载完成:(hr:80070002,CLASSID:577bf17f ...,szCODE:(http://localhost/iag/dotnet/bin/IAGActiveXNet.cab),MainType:(null),MainExt:(null) )


但是,正如我所说,我关闭并重新打开资源管理器,然后...就在里面!控件已加载.

这是一个普遍的问题吗?我是否有任何要点?

谢谢!

Hi!

I have created an activeX and a MSI file to install it, and it works perfectly in Internet Explorer 8 if I install it manually.

I have also created a CAB file with an INF like this:

[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Setup Hooks]
hook1=hook1
[hook1]
run=msiexec.exe /i """%EXTRACT_DIR%\IAGActiveXNetSetup.msi""" /qf

so the activeX is installed automatically when an user visits my webpage. When that happens, the installer is executed, and the installation completes, but the activeX is not loaded in the webpage. I have to close Internet Explorer and reopen it for the activeX control is loaded.

The error I am getting in the first visit to the webpage is

*** Code Download Log entry (05 Jan 2010 @ 14:46:11) ***
Code Download Error: (hr = 80070002) El sistema no puede encontrar el archivo especificado.

Operation failed. Detailed Information:
CodeBase: http://localhost/iag/dotnet/bin/IAGActiveXNet.cab
CLSID: {577BF17F-B59A-4DA5-965E-7834044030B3}
Extension:
Type:

LOG: Setup Hook hook1 was executed successfully.
--- Detailed Error Log Follows ---
LOG: Download OnStopBinding called (hrStatus = 0 / hrResponseHdr = 0).
LOG: URL Download Complete: hrStatus:0, hrOSB:0, hrResponseHdr:0, URL:(http://localhost/iag/dotnet/bin/IAGActiveXNet.cab)
LOG: Setup Hook hook1 was executed successfully.
LOG: Setup successful installing: IAGActiveXNet.inf to (null) destination code(0)
LOG: Reporting Code Download Completion: (hr:80070002, CLASSID: 577bf17f..., szCODE:(http://localhost/iag/dotnet/bin/IAGActiveXNet.cab), MainType:(null), MainExt:(null))


However, as I said, I close and reopen the Explorer and... there it is! The control is loaded.

It this a common problem? Am I missing any important point?

Thank you!

推荐答案

芝加哥


"
AdvancedINF = 2.0
[设置挂钩]
hook1 = hook1
[hook1]
run = msiexec.exe/i""%EXTRACT_DIR%\ IAGActiveXNetSetup.msi""/qf

因此当用户访问我的网页时,会自动安装ActiveX.发生这种情况时,将执行安装程序,并完成安装,但不会将ActiveX加载到网页中.我必须关闭Internet Explorer并重新打开它才能加载activeX控件.

我第一次访问该网页时遇到的错误是

***代码下载日志条目(2010年1月5日@ 14:46:11)***
代码下载错误:(hr = 80070002)El sistema no puede encontrar el archivo especificado.

手术失败.详细信息:
代码库:http://localhost/iag/dotnet/bin/IAGActiveXNet.cab
CLSID:{577BF17F-B59A-4DA5-965E-7834044030B3}
扩展名:
类型:

日志:安装挂钩Hook1已成功执行.
---详细的错误日志如下---
日志:下载名为(hrStatus = 0/hrResponseHdr = 0)的OnStopBinding.
日志:URL下载完成:hrStatus:0,hrOSB:0,hrResponseHdr:0,URL:(http://localhost/iag/dotnet/bin/IAGActiveXNet.cab)
日志:安装挂钩Hook1已成功执行.
日志:安装程序成功安装:IAGActiveXNet.inf到(空)目标代码(0)
日志:报告代码下载完成:(hr:80070002,CLASSID:577bf17f ...,szCODE:(http://localhost/iag/dotnet/bin/IAGActiveXNet.cab),MainType:(null),MainExt:(null) )


但是,正如我所说,我关闭并重新打开资源管理器,然后...就在里面!控件已加载.

这是一个普遍的问题吗?我有什么要紧的地方吗?

谢谢!
"
AdvancedINF=2.0
[Setup Hooks]
hook1=hook1
[hook1]
run=msiexec.exe /i """%EXTRACT_DIR%\IAGActiveXNetSetup.msi""" /qf

so the activeX is installed automatically when an user visits my webpage. When that happens, the installer is executed, and the installation completes, but the activeX is not loaded in the webpage. I have to close Internet Explorer and reopen it for the activeX control is loaded.

The error I am getting in the first visit to the webpage is

*** Code Download Log entry (05 Jan 2010 @ 14:46:11) ***
Code Download Error: (hr = 80070002) El sistema no puede encontrar el archivo especificado.

Operation failed. Detailed Information:
CodeBase: http://localhost/iag/dotnet/bin/IAGActiveXNet.cab
CLSID: {577BF17F-B59A-4DA5-965E-7834044030B3}
Extension:
Type:

LOG: Setup Hook hook1 was executed successfully.
--- Detailed Error Log Follows ---
LOG: Download OnStopBinding called (hrStatus = 0 / hrResponseHdr = 0).
LOG: URL Download Complete: hrStatus:0, hrOSB:0, hrResponseHdr:0, URL:(http://localhost/iag/dotnet/bin/IAGActiveXNet.cab)
LOG: Setup Hook hook1 was executed successfully.
LOG: Setup successful installing: IAGActiveXNet.inf to (null) destination code(0)
LOG: Reporting Code Download Completion: (hr:80070002, CLASSID: 577bf17f..., szCODE:(http://localhost/iag/dotnet/bin/IAGActiveXNet.cab), MainType:(null), MainExt:(null))


However, as I said, I close and reopen the Explorer and... there it is! The control is loaded.

It this a common problem? Am I missing any important point?

Thank you!


几年前我做过同样的事情,但收效甚微.

您可以从Active X本身运行安装程序.从Active X的源代码运行MSI安装.

除此之外,您还可以做一件事,在加载活动X之后运行MSI.将安装程序srcipt放在inf文件的后面.
I had done the same thing few years back with little success.

You can do run the setup from the active X itself.From the source code of Active X, run the MSI installation.

Else you can do one thing, run the MSI after active X is loaded.Put the installer srcipt in the later section of the inf file.


这篇关于带有CAB文件的ActiveX部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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