问题
Does it have a magic?
When I click download button on the webpage, then Google Chrome is downloaded and installed.
It doesn't use ActiveX. And it doesn't even require UAC window in the Vista or later.
How can it be possible?
Please let me know how to make this.
I'd like to make my programs like this.
回答1:
Chrome uses google's project omaha, which is an system that uses clickonce to bootstrap a generic installer engine. That installer is then used to install chrome (they also use it for Google Earth).
If you want to use omaha in your app, the source is available under the Apache License 2.
回答2:
It uses ClickOnce deployment. http://msdn.microsoft.com/en-us/library/t71a733d.aspx
回答3:
UAC isn't involved as the installer does not require elevation; it doesnt use any folders/registry keys that the current user does not already have read/write permissions on. For example mine is installed in C:\Users\alex\AppData\Local\Google\Chrome\Application\chrome.exe
not Program Files
.
If you get a seamless download, you probably have the googleupdate service running.
来源:https://stackoverflow.com/questions/6315906/how-can-google-chrome-be-installed-directly-on-webpage-without-activex