Activex Deployement问题 [英] Activex Deployement issue

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

问题描述


我们使用.NET创建了一个Activex Control(基于CodeFX示例)。我们想在网页中使用它。我们正在使用Object标签,我们为控件创建了一个MSI,并创建了一个包含msi和inf文件的cab文件。
inf的内容如下:


[version]

signature =" $ CHICAGO $"

AdvancedINF = 2.0

[设置挂钩]

hook1 = hook1


[hook1]

run = msiexec.exe / i"%EXTRACT_DIR%\ MyAppSetup.msi" / qn


现在我们在网页中引用CAB文件,以便可以使用以下语句自动下载和安装


  ;< object id =" jactivex"的classid = QUOT; CLSID:0ACC75FB-CDA8-4c71-8A3B-EB3550B46445" codebase =" http:// localhost / MyAppService / MyApp.cab#version = -1,0,0,0 ">

        &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < / object>


安装正在好转 但问题是,即使用户已经安装了MSI,每次用户访问该页面时,IE Promts都会进行安装。我们尝试将cab的版本号提供为-1,-1,-1,-1
,这次它可以正常工作,并且只有当我们构建一个新的cab并在服务器上更改它时才会发布,我们 只有当我们创建一个新版本的activex


时才会这样做,在这种情况下,我们通过更新产品代码和产品版本来重建msi并创建一个新的cab。


但这也不适用于服务器,客户端(IE)位于不同的时区。什么是这个问题的解决方案


我们需要的是IE应该只在版本发生变化时提示安装,否则它不应该


干杯,


Jereesh


.net

解决方案

 


这个组件安装成功吗?您是否检查了控制面板中的产品列表 - >卸载程序?


 


我发现这篇知识库文章告诉我们没有加载ActiveX组件。这对你有用吗?


http://support.microsoft.com/kb / 909738 / zh-CN


 


< span lang ="EN-US"style ="font-family:" Verdana","sans-serif"; font-size:9pt">祝你好运,


< p style ="margin:0cm 0cm 0pt"> Ling Wang


Hi,

We have created an Activex Control using .NET(based on the CodeFX sample). and we want to use it in a web page . And we are using the Object tag for this , We created an MSI for the control and created a cab file which contain the msi and the inf file . the contents of the inf is as follows

[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Setup Hooks]
hook1=hook1

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

Now we are referencing the CAB file in a web page so that it can be downloaded and installed automatically by using the follwing statements

 <object id="jactivex" classid="CLSID:0ACC75FB-CDA8-4c71-8A3B-EB3550B46445" codebase="http://localhost/MyAppService/MyApp.cab#version=-1,0,0,0">
                </object>

The installation is wroking fine  but the issue is that even if the user has installed the MSI , each and every time when the user visit the page , IE Promts for the installation. We tried by provideing the version number for the cab as -1,-1,-1,-1 and this time it works and is not promting and promting only if we build a new cab and change it at the server , we  do it only when we create a new version of the activex

and in that case we rebuild the msi by chnaging the product code and product version and creates a new cab .

But this also is not working of the server and the Client(IE) are in different time zones . What whould be the solution to this problem

what we need is the IE should prompt for the installtion only if there is a version change else it should not

Cheers,

Jereesh


.net

解决方案

 

Does this component installed successfully? Have you check the products list in control Panel -> uninstall a program?

 

I found this KB article tells the ActiveX component is not loaded. Does this work for you?

http://support.microsoft.com/kb/909738/en-us

 

Best regards,

Ling Wang


这篇关于Activex Deployement问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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