Google Chrome

48.0.2564.103

Package test results are passing.

This package was approved as a trusted package on 2/3/2016.

Chrome is a fast, simple, and secure web browser, built for the modern web.

Note

This package uses Chrome’s administrative MSI installer and installs the 32-bit on 32-bit OSes and the 64-bit version on 64-bit OSes. If this package is installed on a 64-bit OS and the 32-bit version of Chrome is already installed, the package keeps installing/updating the 32-bit version of Chrome.

This package always installs the latest version of Google Chrome, regardless of the version specified in the package. Google does not officially offer older versions of Chrome for download.

To install Google Chrome, run the following command from the command line or from PowerShell:

C:\> choco install googlechrome

To upgrade Google Chrome, run the following command from the command line or from PowerShell:

C:\> choco upgrade googlechrome

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $packageName = 'GoogleChrome'
    $fileType = 'msi'
    $silentArgs = '/quiet'
    $url = 'https://dl.google.com/tag/s/appguid={8A69D345-D564-463C-AFF1-A69D9E530F96}&iid={00000000-0000-0000-0000-000000000000}&lang=en&browser=3&usagestats=0&appname=Google Chrome&needsadmin=prefers/edgedl/chrome/install/GoogleChromeStandaloneEnterprise.msi'
    $url64 = 'https://dl.google.com/tag/s/appguid={00000000-0000-0000-0000-000000000000}&iid={00000000-0000-0000-0000-000000000000}&lang=en&browser=4&usagestats=0&appname=Google Chrome&needsadmin=true/dl/chrome/install/googlechromestandaloneenterprise64.msi'
    $version = '48.0.2564.103'
    
    # This function checks if Chrome 32-bit is installed
    # on a 64-bit system
    function Check-Chrome32bitInstalled {
    
      $registryPath = 'HKLM:\SOFTWARE\WOW6432Node\Google\Update\ClientState\'
    
      if (Test-Path $registryPath) {
        Get-ChildItem $registryPath | ForEach-Object {
          if ((Get-ItemProperty $_.pspath).ap -eq '-multi-chrome') {
            return $true
          }
        }
      }
    }
    
    function Find-CID {
      param([String]$croot, [string]$cdname, [string]$ver)
    
      if (Test-Path $croot) {
    
        Get-ChildItem -Force -Path $croot | foreach {
          $CurrentKey = (Get-ItemProperty -Path $_.PsPath)
          if ($CurrentKey -match $cdname -and $CurrentKey -match $ver) {
            return $CurrentKey.PsChildName
          }
        }
      }
    
      return $null
    }
    
    $uroot = 'HKLM:\SOFTWARE\Google\Update\Clients'
    $uroot64 = 'HKLM:\SOFTWARE\Wow6432Node\Google\Update\Clients'
    
    
    $msid = Find-CID $uroot "Google Chrome binaries" "$version"
    if ($msid -eq $null) {
    # try 64bit registry
      $msid = Find-CID $uroot64 "Google Chrome binaries" "$version"
    }
    if ($msid -ne $null) {
       Write-Output "Google Chrome $version is already installed."
    } else {
    
      # If Chrome 32-bit is already installed on a 64-bit system,
      # keep installing the 32-bit version, otherwise install the
      # 64-bit version on 64-bit systems
      if (Check-Chrome32bitInstalled) {
        Install-ChocolateyPackage $packageName $fileType $silentArgs $url
      } else {
        Install-ChocolateyPackage $packageName $fileType $silentArgs $url $url64
      }
    
    }
    
  • tools\chocolateyUninstall.ps1 Show
    $packageName = 'GoogleChrome'
    
    $app = Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -eq 'Google Chrome'}
    if ($app) {
      $msiArgs = $('/x' + $app.IdentifyingNumber + ' /q REBOOT=ReallySuppress')
      Start-ChocolateyProcessAsAdmin $msiArgs 'msiexec'
    }
    

Dependencies

This package has no dependencies.

Maintainer(s)

Software Author(s)

  • Google Inc.

Tags

Version History

Version Downloads Last updated Status
Google Chrome 48.0.2564.97 16110 Wednesday, January 27, 2016 approved
Google Chrome 48.0.2564.82 13490 Wednesday, January 20, 2016 approved
Google Chrome 47.0.2526.111 14511 Wednesday, January 13, 2016 approved
Google Chrome 47.0.2526.106 26480 Wednesday, December 16, 2015 approved
Google Chrome 47.0.2526.82 9413 Saturday, December 12, 2015 approved
Google Chrome (32-bit) 47.0.2526.81 170 Saturday, December 12, 2015 approved
Google Chrome (32-bit) 47.0.2526.80 6890 Tuesday, December 8, 2015 approved
Google Chrome (32-bit) 47.0.2526.73 8544 Tuesday, December 1, 2015 approved
Google Chrome (32-bit) 46.0.2490.86 20963 Tuesday, November 10, 2015 approved
Show More

Discussion for the Google Chrome Package

Ground rules:

  • This discussion is only about Google Chrome and the Google Chrome package. If you have feedback for chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Google Chrome, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.

comments powered by Disqus