免互動安裝Google Chrome Beta、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Google.Chrome.Beta -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Google.Chrome.Beta -e --silentwinget uninstall --id Google.Chrome.Beta -e --silent依安裝檔
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i googlechromebetastandaloneenterprise64.msi /qn /norestart寫入記錄檔
msiexec /i googlechromebetastandaloneenterprise64.msi /qn /norestart /l*v "%TEMP%\google-chrome-beta-install.log"解除安裝
msiexec /x {43A8F9FA-A856-36F7-B3C1-B5D92EECA8B2} /qn /norestart- MSI產品代碼
- {43A8F9FA-A856-36F7-B3C1-B5D92EECA8B2}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{43A8F9FA-A856-36F7-B3C1-B5D92EECA8B2}
- UpgradeCode
- {4E5BAC76-2D99-356C-AE5B-B15DA0315002}
ARM64 · MSI · 所有使用者
靜默安裝
msiexec /i googlechromebetastandaloneenterprise_arm64.msi /qn /norestart寫入記錄檔
msiexec /i googlechromebetastandaloneenterprise_arm64.msi /qn /norestart /l*v "%TEMP%\google-chrome-beta-install.log"解除安裝
msiexec /x {DEEA9223-3ED5-39D7-B114-6B832FF214A4} /qn /norestart- MSI產品代碼
- {DEEA9223-3ED5-39D7-B114-6B832FF214A4}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DEEA9223-3ED5-39D7-B114-6B832FF214A4}
- UpgradeCode
- {4E5BAC76-2D99-356C-AE5B-B15DA0315002}
32位元 · MSI · 所有使用者
靜默安裝
msiexec /i googlechromebetastandaloneenterprise.msi /qn /norestart寫入記錄檔
msiexec /i googlechromebetastandaloneenterprise.msi /qn /norestart /l*v "%TEMP%\google-chrome-beta-install.log"解除安裝
msiexec /x {27FDAA71-E9FA-38B9-953E-200835AB7E45} /qn /norestart- MSI產品代碼
- {27FDAA71-E9FA-38B9-953E-200835AB7E45}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{27FDAA71-E9FA-38B9-953E-200835AB7E45}
- UpgradeCode
- {4E5BAC76-2D99-356C-AE5B-B15DA0315002}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-google-chrome-beta.ps1
$url = 'https://dl.google.com/dl/chrome/install/beta/googlechromebetastandaloneenterprise64.msi'
$sha256 = '6B8C1BCF660D5328493171CCDEC80318E9695DE3B7C514F161E9D8D6D763C5E6'
$file = Join-Path $env:TEMP 'googlechromebetastandaloneenterprise64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-google-chrome-beta.ps1
$url = 'https://dl.google.com/dl/chrome/install/beta/googlechromebetastandaloneenterprise_arm64.msi'
$sha256 = '0BC62285788792A10B58F4714693635E28ECEB746799C10191998DCB3E8909E1'
$file = Join-Path $env:TEMP 'googlechromebetastandaloneenterprise_arm64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-google-chrome-beta.ps1
$url = 'https://dl.google.com/dl/chrome/install/beta/googlechromebetastandaloneenterprise.msi'
$sha256 = 'CC9137658DD8402F9BD512D01DF6DC23FA2BB27C38E2AA36A545BAB81A0D7B33'
$file = Join-Path $env:TEMP 'googlechromebetastandaloneenterprise.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait