How can I silently install Google Chrome?

I want to make a silent installation of Google Chrome Beta. I've tried invoking the ChromeSetup.exe downloader with /s or /-ms but nothing worked.

Then I've downloaded the standalone installation version, and tried the same, but got the same result – the silent installation doesn't work.

Basically what I need is to avoid the post-installation dialog ("Choose a search engine"). Is there a way to silently choose Google?


Solution 1:

  1. Download the Chrome installer.

  2. Use the switches /silent and /install like so:

    chrome_installer.exe /silent /install
    
  3. Enjoy!

Solution 2:

Installing with the MSI file with the q flag will give you a silent install.

Solution 3:

It is possible to silent install Chrome using Chocolatey.

Install Chocolatey

Open a commandprompt as an Administrator and issue:

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

Install Chrome

choco install googlechrome

Solution 4:

For a setup file which has .msi extension:

msiexec /q /i GoogleChromeStandoloneEnterprise.msi

For detailed information, see this blog post.

Solution 5:

If only PowerShell 2.0 had a native one-line curl... For simplicity, I created my own, which takes a url and downloads the content. If you need basic auth, I've provided parameters for that too.

To get up and running:

  1. Load a PowerShell console
  2. Create a ps1, psm1 or simply copy and paste and execute this code block in PowerShell.
  3. The code will call Get-Url and silently execute chrome_installer.exe

NOTE: if you have any issues:

  • ensure you are running PowerShell in Administrator mode
  • C:\temp is an existing directory that you can access (or just change your $filePath)
# our curl command, with basic authentication if $credentials provided
function Get-Url {
    param(
        [string]$url, # e.g. "http://dl.google.com/chrome/install/375.126/chrome_installer.exe"
        [string]$filepath, # e.g. "c:\temp\chrome_installer.exe"
        [string]$credentials # e.g. "username:pass"
    )

    $client = New-Object System.Net.WebClient;

    if ($credentials) {
        $credentialsB64 = [System.Text.Encoding]::UTF8.GetBytes($credentials) ;
        $credentialsB64 = [System.Convert]::ToBase64String($credentialsB64) ;    
        $client.Headers.Add("Authorization", "Basic " + $credentialsB64) ;
    }    

    $client.DownloadFile($url, $filepath);
}

# curl and run silent install
Get-Url http://dl.google.com/chrome/install/375.126/chrome_installer.exe c:\temp\chrome_installer.exe ;
c:\temp\chrome_installer.exe /silent /install ;