-
Notifications
You must be signed in to change notification settings - Fork 373
/
chocolateyInstall.ps1
24 lines (21 loc) · 1.15 KB
/
chocolateyInstall.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
. $toolsPath\helpers.ps1
$version = '95.0.4638.32-beta'
if ($version -eq (Get-ChromeBetaVersion)) {
Write-Host "Google Chrome Beta $version is already installed."
return
}
$packageArgs = @{
packageName = 'googlechrome'
fileType = 'MSI'
url = 'https://dl.google.com/tag/s/dl/chrome/install/beta/googlechromebetastandaloneenterprise.msi'
url64bit = 'https://dl.google.com/tag/s/dl/chrome/install/beta/googlechromebetastandaloneenterprise64.msi'
checksum = '4c0369f3e55ed85b51770241ae39fd1e870dc835c18ea0bb3d292b36864d44e0'
checksum64 = '861b246674b751d6ee81b5bb03861e9aacb7d2169f56437bf8e1a68137e7c26b'
checksumType = 'sha256'
checksumType64 = 'sha256'
silentArgs = "/quiet /norestart /l*v `"$($env:TEMP)\$($env:chocolateyPackageName).$($env:chocolateyPackageVersion).MsiInstall.log`""
validExitCodes = @(0)
}
if (Get-Chrome32bitInstalled) { 'url64bit', 'checksum64', 'checksumType64' | ForEach-Object { $packageArgs.Remove($_) } }
Install-ChocolateyPackage @packageArgs