Google Chrome Devを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリと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