c# – Google Chrome如何管理下载后自动执行安装?

前端之家收集整理的这篇文章主要介绍了c# – Google Chrome如何管理下载后自动执行安装?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当您下载Google Chrome时,可以检查exe的自动安装. win32 exe和.net exe如何实现?

我不知道他们能做什么,因为我以为这是一个违规的安全.

我去了这里http://omaha.googlecode.com/svn/wiki/OmahaOverview.html阅读

New Install

User downloads a Meta-installer from a
Google website,going through standard
browser file download steps. Once the
user figures out how to launch the
Meta-installer,the Meta-installer
installs and runs the Omaha client. On
Windows platforms,such as Windows
Vista,with UAC,an elevation prompt
is displayed when installing
applications per-machine. The client
then begins downloading and installing
the app referenced by the micro
reference.

但是在全新的机器上,我没有安装任何元安装程序,Chrome还是自动安装.这怎么可能 ?

似乎是一个谜:没有人没有真正的线索.

关于ClickOnce,只要我看到用户显示一个要求确认的弹出窗口,这不是Google Chrome的情况.

解决方法

Google Chrome具有在后台运行以检查和应用升级的服务.它是 open source,您也可以将其用于您的应用程序.

就原始安装而言,下载页面支持三种方法:“oneclick”,“clickonce”和普通的旧版本.最后一个,您必须手动保存并运行安装程序.

第一个似乎取决于您是否安装了Google桌面,Gears或工具栏. This link描述了安装使用类似安装过程的Google视频聊天应用程序.

当您点击按钮时:

Then what the script exectued behind
is:

window.google.update.oneclick.install
(install via click)

and

location.href =
07002
(install manually )

Note the first bit of script
window.google,A new object for
google,which is created as the result
of any one of the above mentioned
google services. My Chrome Browser
(Since he is a new member) does not
know about the window.google (he knows
the default methods like
window.location,window.document)

您可以查看Chrome安装页面here的来源,或使用浏览器.但是你可以看到它使用类似的过程.

它可以返回到ClickOnce安装,这将很有可能在安装之前提示用户.但这取决于您的安全设置.

这实际上似乎是Super User Question的重复.

原文链接:https://www.f2er.com/csharp/94316.html

猜你在找的C#相关文章