Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $toolsPath = Split-Path $MyInvocation.MyCommand.Definition
- . $toolsPath\helpers.ps1
- $version = '58.0.3029.110'
- if ($version -eq (Get-ChromeVersion)) {
- Write-Host "Google Chrome $version is already installed."
- return
- }
- $packageArgs = @{
- packageName = 'googlechrome'
- fileType = 'MSI'
- url = 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise.msi'
- url64bit = 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise64.msi'
- checksum = 'bcd7e0dd6b5daa9ef271232a840272ff530e426dbe29b3e71516ee9a26af3e92'
- checksum64 = '96cd8dd0de7e34942ba04e277796a53f31c459ab200ebb6cd96564f2e8a645bb'
- checksumType = 'sha256'
- checksumType64 = 'sha256'
- silentArgs = '/quiet'
- validExitCodes = @(0)
- }
- if (Get-Chrome32bitInstalled) { 'url64bit', 'checksum64', 'checksumType64' | % { $packageArgs.Remove($_) } }
- Install-ChocolateyPackage @packageArgs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement