如何显示ActiveX黄条?

发布于 2024-09-15 05:16:16 字数 1476 浏览 6 评论 0原文

我正在尝试设置一个下载 OCX 的网页,并在用户右键单击黄色栏时在用户许可的情况下安装它。

注意:这是一个商业应用程序,我知道... IE,但 95% 的公司客户使用它,我们很容易从 Windows > 迁移到 IE。首先是 OCX,然后是完整的 WebService

我所做的是创建一个 cab 文件:

- eds.cab (signed with an SSL certificate)
     |--- EDS.ocx
     |--- setup.inf

setup.inf 有以下代码:

[version]
signature="$CHICAGO$"

[Add.Code]
EDS.ocx=EDS.ocx

[EDS.ocx]
file-win32-x86=thiscab
clsid={8EC68701-329D-4567-BCB5-9EE4BA43D358}
FileVersion=3,5,0,150
RegisterServer=yes

然后网页包含 标记像这样:

<object 
    id="ActiveX" 
    classid="CLSID:8EC68701-329D-4567-BCB5-9EE4BA43D358" 
    width="14" 
    height="14" 
    codebase="http://localhost/EDS.Webservice/EDS.cab#version=3,5,0,150">
    <param name="tabName" value="Stop:http://localhost/EDS.Webservice/" />
</object>

他们我导航到 http://localhost/EDS.Webservice/

问题是我没有看到那个黄色条,只是 ACL 要求我接受它。

有人知道我可能错过了什么吗?

它只在 Windows 7 上显示 ACL 消息,而不是首先显示黄色栏,例如 Flash 插件...:-(


添加了

我们追求的是:

alt text

谢谢


已添加

Internet Explorer 设置为默认,高级选项卡上的安全性以及信任域

I'm trying to set up a webpage that downloads the OCX and installs it with the user permission when the user right click in the yellow bar

Note: it's a business app and I know... IE, but 95% of company customers use it and it's easy for us to move from Windows > OCX first and then to full WebService

What I did was create a cab file with:

- eds.cab (signed with an SSL certificate)
     |--- EDS.ocx
     |--- setup.inf

the setup.inf has this code:

[version]
signature="$CHICAGO$"

[Add.Code]
EDS.ocx=EDS.ocx

[EDS.ocx]
file-win32-x86=thiscab
clsid={8EC68701-329D-4567-BCB5-9EE4BA43D358}
FileVersion=3,5,0,150
RegisterServer=yes

and then the webpage contains the tag like this:

<object 
    id="ActiveX" 
    classid="CLSID:8EC68701-329D-4567-BCB5-9EE4BA43D358" 
    width="14" 
    height="14" 
    codebase="http://localhost/EDS.Webservice/EDS.cab#version=3,5,0,150">
    <param name="tabName" value="Stop:http://localhost/EDS.Webservice/" />
</object>

and they I navigate to the http://localhost/EDS.Webservice/

The issue is that I do not get that yellow bar, just the ACL asking me to accept it.

Does anyone know what I could have been missing?

It only shows the ACL message on Windows 7, never the yellow bar first like, Flash plugin... :-(


added

What we are after:

alt text

Thank you.


Added

Internet Explorer Settings are as Default, both Security on Advanced Tab as well Trust Domains

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

撕心裂肺的伤痛 2024-09-22 05:16:16

也许问题出在缺少部署部分。尝试修改您的 .inf 文件:

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

[Add.Code]
EDS.ocx=EDS.ocx

[Deployment] 
InstallScope=user|machine

[EDS.ocx]
file-win32-x86=thiscab
clsid={8EC68701-329D-4567-BCB5-9EE4BA43D358}
FileVersion=3,5,0,150
RegisterServer=yes

Maybe the problem is in absent Deployment section. Try to modify your .inf file:

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

[Add.Code]
EDS.ocx=EDS.ocx

[Deployment] 
InstallScope=user|machine

[EDS.ocx]
file-win32-x86=thiscab
clsid={8EC68701-329D-4567-BCB5-9EE4BA43D358}
FileVersion=3,5,0,150
RegisterServer=yes
迷雾森÷林ヴ 2024-09-22 05:16:16

您从哪里提供页面?如果它来自本地主机/本地网络内部,它将应用不同的安全策略 - 即使所有设置均为默认设置。尝试将其发布到外部服务器,看看会发生什么(或者如果失败,请将“受信任”站点的设置更改为与“互联网”相同)

您还应该检查组件签名方面发生的情况 - 您的对象是否这样做拥有您的域/电脑设置信任的证书吗?

Where are you serving your page from? If it's from localhost/inside the local network, it will have a different security policy applied - even with all settings as default. Try publishing it to an external server and see what happens (or failing that, change the settings for "trusted" site to be the same as "internet")

You should also check what's happening with regards to signing of the component - does your object have a certificate that's trusted by your domain/pc setup?

滥情哥ㄟ 2024-09-22 05:16:16

您需要确定 IE 设置,然后与域管理员交谈以将其作为策略推送。黄色条适用于被认为不受信任的应用程序,并且您希望您的应用程序在客户端框中被视为完全受信任 - 您只需将 IE 设置调整为它为所有应用程序显示黄色条 - 即使是那些完全签名和受信任且来自本地/的应用程序公司网。

You need to nail IE settings and then talk to domain admin(s) to push it as a policy. Yellow bar is for apps that are considered untrusted and you want your app to be considered fully trusted on client boxes - you just want IE settings tweaked to that it shows yellow bar for all apps - even those totally signed and trusted and coming from local/corp net.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文