How does Google Chrome manage to execute installation automatically after download?

前端 未结 5 860
野趣味
野趣味 2021-02-08 07:01

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 th

5条回答
  •  逝去的感伤
    2021-02-08 07:27

    As this superuser answer points out, they actually use ClickOnce to install their download manager:

    It actually is ClickOnce.

    function installViaClickOnce(opt_navDocument) {
        queueThankyou(10000, '\x26clickonceinstalled=', opt_navDocument);
        downloadInstaller(areStatsEnabled(),
                          _GU_buildClickOncePath,
                          "/update2/installers/clickonce/GoogleInstaller_en.application");
        showThrobber(true);
    }
    

    Google's ClickOnce application installs the installer for Chrome which in turn does the download for the browser.

提交回复
热议问题