如何谷歌浏览器来管理下载后自动执行安装? [英] How does Google Chrome manage to execute installation automatically after download?

查看:349
本文介绍了如何谷歌浏览器来管理下载后自动执行安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您下载谷歌浏览器可以自动检查安装的exe。如何做到这一点适用于Win32 EXE和.net的exe?

When you download google chrome one can check automatic install of exe. How to achieve that for win32 exe and .net exe ?

我不知道他们如何能做到这一点,因为我认为这将是一个违反安全。

I wonder how they can do this since I thought this would be a violation security.

我就在这里 HTTP://omaha.googlecode。 COM / SVN /维基/ OmahaOverview.html 并读

新安装

用户下载从
谷歌网站的元安装程序,通过标准
浏览器下载文件的步骤去。一旦
用户计算出如何启动
中继安装,元安装
安装并运行奥马哈客户端。在
Windows平台,如Windows
Vista中,UAC的,每台机器上安装
的应用程序时显示的提升提示
。客户端
然后开始下载和安装
。通过微
参考引用的应用程序。

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未自动安装。这怎么可能。

But on a brand new machine I didn't install any meta-installer, still Chrome did install automatically. How is this possible ?

看来这是一个谜:?没有人有没有真正的线索

Seems it's a mystery: nobody has no real clue.

有关ClickOnce远我所看到的用户显示,询问确认弹出,这是不是谷歌浏览器的情况下。

About ClickOnce as far as I can see User is shown a popup which asks confirmation, this is not the case of Google Chrome.

推荐答案

谷歌浏览器有在后台运行的服务,以检查和应用升级。这是开源,然后你可以用它为您的应用程序也是如此。

Google Chrome has a service that runs in the background to check for and apply upgrades. It is open source and you can use it for your applications as well.

至于原始安装,似乎有三种方法的下载页支持:一键式,的ClickOnce,和一个普通的旧下载。随着最后一个,你必须手动保存并运行安装程序。

As far as the original installation, there appears to be three methods that the download pages supports: "oneclick", "clickonce", and a plain old download. With the last one, you have to manually save and run the installer.

第一个似乎取决于如果您有谷歌桌面,安装Gears或工具栏。 此链接描述了谷歌视频聊天应用程序,它使用类似的安装过程中安装。

The first one appears to depend on if you have Google Desktop, Gears, or Toolbar installed. This link describes the installation of a Google Video Chat application, which uses a similar installation process.

当您单击该按钮:

那么什么脚本背后$ exectued b $ b为:

Then what the script exectued behind is:

window.google.update.oneclick.install
(通过点击安装)

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

location.href =
http://dl.google.com/googletalk/googletalkplugin/GoogleVoiceAndVideoSetup.exe
(手动安装)

location.href = http://dl.google.com/googletalk/googletalkplugin/GoogleVoiceAndVideoSetup.exe (install manually )

请注意的第一位脚本
window.google,为
谷歌,这是由于以上提到的
谷歌服务的任何一个的结果
创建一个新的对象。我的Chrome浏览器
(因为他是新成员)没有
了解window.google(他知道
默认的方法,如
window.location的,window.document)

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安装页面的源代码的这里,或使用你的浏览器。但你可以看到它采用了类似的过程。

You can view the source of the Chrome installation page here, or using your browser. But you can see it uses a similar process.

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

It can fall back to the ClickOnce installation, which will most likely prompt the user before installing. But this depends on your security settings.

这实际上似乎是一个重复的超级网友提问

This actually appears to be duplicate of a Super User Question.

这篇关于如何谷歌浏览器来管理下载后自动执行安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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