Google Chromeを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Google.Chrome -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Google.Chrome -e --silentwinget uninstall --id Google.Chrome -e --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i googlechromestandaloneenterprise64.msi /qn /norestartログを出力
msiexec /i googlechromestandaloneenterprise64.msi /qn /norestart /l*v "%TEMP%\google-chrome-install.log"アンインストール
msiexec /x {E063B2E2-7766-3CA4-A4D1-0292373C622C} /qn /norestart- MSIプロダクトコード
- {E063B2E2-7766-3CA4-A4D1-0292373C622C}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E063B2E2-7766-3CA4-A4D1-0292373C622C}
- UpgradeCode
- {C1DFDF69-5945-32F2-A35E-EE94C99C7CF4}
ARM64 · MSI · すべてのユーザー
サイレントインストール
msiexec /i googlechromestandaloneenterprise_arm64.msi /qn /norestartログを出力
msiexec /i googlechromestandaloneenterprise_arm64.msi /qn /norestart /l*v "%TEMP%\google-chrome-install.log"アンインストール
msiexec /x {DED3ADBF-1E4D-3B76-A24A-CCE0747F0739} /qn /norestart- MSIプロダクトコード
- {DED3ADBF-1E4D-3B76-A24A-CCE0747F0739}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DED3ADBF-1E4D-3B76-A24A-CCE0747F0739}
- UpgradeCode
- {C1DFDF69-5945-32F2-A35E-EE94C99C7CF4}
32ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i googlechromestandaloneenterprise.msi /qn /norestartログを出力
msiexec /i googlechromestandaloneenterprise.msi /qn /norestart /l*v "%TEMP%\google-chrome-install.log"アンインストール
msiexec /x {97A30592-636A-390D-829D-F6C6C5B3FA8A} /qn /norestart- MSIプロダクトコード
- {97A30592-636A-390D-829D-F6C6C5B3FA8A}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{97A30592-636A-390D-829D-F6C6C5B3FA8A}
- UpgradeCode
- {C1DFDF69-5945-32F2-A35E-EE94C99C7CF4}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-google-chrome.ps1
$url = 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi'
$sha256 = 'CF1757B01C3AF403DE494A1B702E2A96701FD10026F5B89BE53741689ED25895'
$file = Join-Path $env:TEMP 'googlechromestandaloneenterprise64.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.ps1
$url = 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise_arm64.msi'
$sha256 = '89657A1651C6775BA7101FB2FB7103FD70D0881EF821BACBF0AF3CB7E32088B0'
$file = Join-Path $env:TEMP 'googlechromestandaloneenterprise_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.ps1
$url = 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise.msi'
$sha256 = 'F566A56025DFBDE0656EF92DD6F8FD69F3E1108037503E6D7EDB377E99B7FDA9'
$file = Join-Path $env:TEMP 'googlechromestandaloneenterprise.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