Silverlight 4 在浏览器中启动可信应用程序?

发布于 2024-08-27 07:50:48 字数 396 浏览 6 评论 0原文

我花了 5 个小时寻找答案,但一直找不到:p

首先,我想强制可信应用程序(我需要访问文件系统)显示在浏览器中。根据我在谷歌上发现的内容 必须安装并启动受信任的应用程序作为桌面应用程序(也称为浏览器外应用程序)。

因此,我希望在客户端安装一个应用程序,但同时,用户在访问我的网站时还必须能够在浏览器窗口中启动相同的应用程序。这可能吗?

其次,我想为用户提供从浏览器启动应用程序的可能性。需要明确的是,该应用程序安装在客户端计算机上,但我希望在我的网站上有一个启动桌面应用程序的按钮。我怎样才能做到这一点?

谢谢

I just lost 5 hours looking for a answer which i haven't been able to find :p

First, I'd like to force a trusted application (i need to access the file system) to display into the browser. Based on what i found on google a trusted application must be installed and launched as a desktop application (also called out-of-browser application).

So, i want to have an installed application on the client side but meanwhile, the user must also be able to start this same application into a browser window when he goes on my web site. Is this possible ?

Second, I'd like to give to the user the possibility to start the application from the browser. To be clear, the application is installed on the client computer but i want a button on my web site which starts the desktop application. How can i do that ?

Thanks

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

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

发布评论

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

评论(2

走走停停 2024-09-03 07:50:48

答案是“是”,“不是”。

是的,您也可以在浏览器中运行已安装在客户端上的应用程序。但是,并非所有已安装的应用程序功能都可用。任何需要提升信任度的内容都无法在浏览器中运行。

不,您无法从浏览器中运行的代码中以编程方式启动已安装的应用程序。您能做的最好的事情就是向用户显示一条礼貌的消息,告知他们已经安装了此应用程序,并且为了访问其所有功能,他们需要启动它。

The answers are sort of and no.

Yes you can run an application that has been installed on the client also in the browser. However, not all of the installed application features will be available. Anything that requires elevated trust will not work inside the browser.

No you can't launch the installed application programmatically from within code running in the browser. The best you can do is display a polite message to the user to the effect that they have this app already installed and in order to access all of its feature they will need to launch it.

邮友 2024-09-03 07:50:48

是的,从 Silverlight 5 开始就有可能,请参阅我的答案 silverlight -4-浏览器内提升的权限

Yes, it is possbile since Silverlight 5, see my answer on silverlight-4-elevated-permission-inside-the-browser

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