免互動安裝Google Chrome Dev、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Google.Chrome.Dev -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Google.Chrome.Dev -e --silentwinget uninstall --id Google.Chrome.Dev -e --silent依安裝檔
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i googlechromedevstandaloneenterprise64.msi /qn /norestart寫入記錄檔
msiexec /i googlechromedevstandaloneenterprise64.msi /qn /norestart /l*v "%TEMP%\google-chrome-dev-install.log"解除安裝
msiexec /x {76DF22E1-E3A5-301C-BCF7-59BA2F3DC78A} /qn /norestart- MSI產品代碼
- {76DF22E1-E3A5-301C-BCF7-59BA2F3DC78A}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{76DF22E1-E3A5-301C-BCF7-59BA2F3DC78A}
- UpgradeCode
- {4446A051-2887-39AC-BF8C-BD2ED8B703CA}
32位元 · MSI · 所有使用者
靜默安裝
msiexec /i googlechromedevstandaloneenterprise.msi /qn /norestart寫入記錄檔
msiexec /i googlechromedevstandaloneenterprise.msi /qn /norestart /l*v "%TEMP%\google-chrome-dev-install.log"解除安裝
msiexec /x {B2BBDBBF-D1DD-3B4D-8694-8BE1B22B2121} /qn /norestart- MSI產品代碼
- {B2BBDBBF-D1DD-3B4D-8694-8BE1B22B2121}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{B2BBDBBF-D1DD-3B4D-8694-8BE1B22B2121}
- UpgradeCode
- {4446A051-2887-39AC-BF8C-BD2ED8B703CA}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-google-chrome-dev.ps1
$url = 'https://dl.google.com/dl/chrome/install/dev/googlechromedevstandaloneenterprise64.msi'
$sha256 = '39721CCA6CC42C151D8B699505FD4CA87E531DC7B6E94B00C1E0E014586037AB'
$file = Join-Path $env:TEMP 'googlechromedevstandaloneenterprise64.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-dev.ps1
$url = 'https://dl.google.com/dl/chrome/install/dev/googlechromedevstandaloneenterprise.msi'
$sha256 = 'B6E3591443795E08F9559EDE926F87A15579ECDB1CBF32EB6E3BB524D04EE6C4'
$file = Join-Path $env:TEMP 'googlechromedevstandaloneenterprise.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