User Agents

Web browsers and everyday web tech, explained

Install Google Chrome Silently via Command Line

· 6 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To silently install Google Chrome from the command line, you must use the Chrome standalone enterprise installer (MSI) combined with the /quiet or /qn switch. This process allows an administrator to deploy the browser across multiple machines without requiring user interaction, bypassing the standard installation wizard and preventing the browser from launching automatically upon completion. This is the primary method used by IT professionals for mass deployment via Group Policy Objects (GPO), Microsoft Endpoint Configuration Manager (MECM), or simple batch scripts.

What You'll Need

  • An administrative account on the target Windows machine to execute elevated commands.
  • The Google Chrome Enterprise MSI installer package.
  • Access to the Command Prompt (CMD) or Windows PowerShell running with administrative privileges.
  • A stable internet connection if you are downloading the installer via the command line using tools like curl or Invoke-WebRequest.

Step-by-Step

  1. Download the Enterprise MSI: Navigate to the Google Chrome Enterprise download page. It is critical to use the MSI (Microsoft Installer) version rather than the standard .exe stub installer. The stub installer requires a GUI to download the full package, which defeats the purpose of a silent installation. Save the file to a known directory, such as C:\Installers\googlechromestandaloneenterprise64.msi.
  2. Open an Elevated Command Prompt: Click the Start menu, type "cmd", right-click on the Command Prompt application, and select "Run as administrator". If you are using PowerShell, right-click the PowerShell icon and select "Run as administrator". This is mandatory because installing software to the Program Files directory requires system-level permissions.
  3. Navigate to the Installer Directory: Use the cd command to move to the folder where you saved the MSI file. For example, type cd C:\Installers and press Enter. This ensures the command line is looking in the correct location for the file.
  4. Execute the Silent Install Command: Type the following command exactly as shown: msiexec /i googlechromestandaloneenterprise64.msi /quiet /norestart.
    • msiexec: The executable for the Windows Installer service.
    • /i: Tells the installer to perform an installation.
    • googlechromestandaloneenterprise64.msi: The name of the file you are installing.
    • /quiet: This switch suppresses all user interface, including the progress bar and the final "Installation Complete" dialog.
    • /norestart: Prevents the machine from automatically rebooting if the installer determines a restart is necessary to finalize the setup.
  5. Verify the Installation: Since the /quiet switch provides no visual feedback, the command prompt will simply return to a new line once the process is finished. To verify that Chrome was installed successfully, you can check the installation directory by typing dir "C:\Program Files\Google\Chrome\Application" or by attempting to launch the browser via the command line using start chrome.
  6. Optional: Log the Installation: If you are deploying this to many machines, add a logging switch to capture any errors. Use the command: msiexec /i googlechromestandaloneenterprise64.msi /quiet /norestart /L*V "C:\Installers\chrome_install.log". This creates a verbose log file that records every action the installer took.

Common Mistakes

One of the most frequent errors is attempting to use the standard ChromeSetup.exe instead of the googlechromestandaloneenterprise64.msi. The standard setup file is a small "bootstrapper" that opens a window to download the rest of the browser; because it relies on a graphical user interface to initiate the download, it cannot be truly silenced. If you run a silent command on the .exe, it often simply does nothing or opens the GUI anyway.

Another common mistake is failing to run the command prompt as an administrator. When a user runs msiexec without elevation, the installer may fail silently. Because the /quiet switch is active, you won't see the "Access Denied" or "UAC" prompt that would normally alert you to the permission issue. The command will appear to run successfully, but the software will not be installed.

Users also frequently misspell the switches. For example, using /s (which is common for .exe installers) instead of /quiet or /qn (which are required for .msi installers). While some installers support multiple flags, msiexec is strict about its syntax. Using the wrong switch will either trigger the full GUI or cause the installer to throw a syntax error dialog.

Tips

For those managing a large number of workstations, consider creating a simple .bat (Batch) file. This allows you to store the installer on a network share and run the script on remote machines. A sample batch script would look like: \Server\Deploy\googlechromestandaloneenterprise64.msi /quiet /norestart. This removes the need to manually navigate directories on every machine.

If you need to ensure that Chrome is not only installed but also configured with specific settings (like a default home page or disabled updates), look into the Google Chrome ADMX templates. These allow you to manage the browser via Group Policy after the silent installation is complete. Combining a silent MSI install with GPO is the industry standard for corporate environments.

To speed up the process during testing, you can use the /qn switch instead of /quiet. While they are functionally very similar in most versions of Windows Installer, /qn specifically tells the system "Quiet, No UI". If you want to see a progress bar but no interaction, you can use /qb (Quiet, Basic UI).

Troubleshooting

If the installation does not seem to happen, the first step is to check the Windows Event Viewer. Navigate to Windows Logs > Application and look for entries sourced from "MsiInstaller". This will tell you if the installation failed due to a missing dependency, a corrupted MSI file, or a permission conflict.

If you implemented logging using the /L*V switch, open the resulting .log file in a text editor and search for the string "Return Value 3". In MSI logs, "Return Value 3" almost always indicates a fatal error. The lines immediately preceding this entry will explain why the installation failed, such as a conflict with a previously installed version of Chrome that was not properly removed.

In cases where the installer hangs, check the Task Manager for any existing msiexec.exe processes. Sometimes a previous installation attempt gets stuck in the background, locking the Windows Installer service and preventing new installations from starting. End all msiexec.exe tasks and try running the command again.

If Chrome is installed but fails to launch, ensure that your antivirus or endpoint detection and response (EDR) software hasn't flagged the silent installation as suspicious behavior. Some security tools block msiexec commands that originate from scripts or the command line to prevent malware from installing software silently. Check your security logs and whitelist the installer if necessary.

Frequently Asked Questions

Can I silently install Chrome using a .exe file?

While some .exe installers support silent flags, it is unreliable for Chrome. The standard .exe is a web-installer; for a guaranteed silent experience, always use the Enterprise MSI package.

Does a silent install remove the previous version of Chrome?

Yes, the MSI installer typically upgrades the existing version of Google Chrome to the latest version included in the package while preserving user profiles and bookmarks.

How do I uninstall Google Chrome silently?

You can use the command msiexec /x {ProductCode} /quiet. You will need to find the specific Product Code (a GUID) for the version of Chrome installed on the machine via the registry.

Will the silent install launch Chrome after it finishes?

No, using the /quiet switch prevents the browser from launching automatically. The user will need to start the browser manually from the Start menu or desktop shortcut.

Can I use PowerShell instead of CMD?

Yes, PowerShell works perfectly. However, ensure you wrap the path in quotes if it contains spaces and use the Start-Process cmdlet for better control, such as Start-Process msiexec.exe -ArgumentList '/i "C:\path\to\chrome.msi" /quiet /norestart' -Wait.