Advertisement
Guest User

Untitled

a guest
May 25th, 2017
691
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $toolsPath = Split-Path $MyInvocation.MyCommand.Definition
  2. . $toolsPath\helpers.ps1
  3.  
  4. $version = '58.0.3029.110'
  5. if ($version -eq (Get-ChromeVersion)) {
  6.   Write-Host "Google Chrome $version is already installed."
  7.   return
  8. }
  9.  
  10. $packageArgs = @{
  11.   packageName            = 'googlechrome'
  12.   fileType               = 'MSI'
  13.   url                    = 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise.msi'
  14.   url64bit               = 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise64.msi'
  15.   checksum               = 'bcd7e0dd6b5daa9ef271232a840272ff530e426dbe29b3e71516ee9a26af3e92'
  16.   checksum64             = '96cd8dd0de7e34942ba04e277796a53f31c459ab200ebb6cd96564f2e8a645bb'
  17.   checksumType           = 'sha256'
  18.   checksumType64         = 'sha256'
  19.   silentArgs             = '/quiet'
  20.   validExitCodes         = @(0)
  21. }
  22.  
  23. if (Get-Chrome32bitInstalled) { 'url64bit', 'checksum64', 'checksumType64' | % { $packageArgs.Remove($_) } }
  24. Install-ChocolateyPackage @packageArgs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement