CComを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ChilliBits.CCom -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ChilliBits.CCom -e --silentwinget uninstall --id ChilliBits.CCom -e --silentインストーラー別
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i ccom_x64_setup.msi /qn /norestartログを出力
msiexec /i ccom_x64_setup.msi /qn /norestart /l*v "%TEMP%\ccom-install.log"アンインストール
msiexec /x {BB1E1F5D-285B-40ED-9C5D-FF78CE2C3C7E} /qn /norestart- MSIプロダクトコード
- {BB1E1F5D-285B-40ED-9C5D-FF78CE2C3C7E}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BB1E1F5D-285B-40ED-9C5D-FF78CE2C3C7E}
- UpgradeCode
- {A4C2FE8C-490A-4C52-A57B-9064F60ADCA3}
32ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i ccom_x86_setup.msi /qn /norestartログを出力
msiexec /i ccom_x86_setup.msi /qn /norestart /l*v "%TEMP%\ccom-install.log"アンインストール
msiexec /x {B03BAD09-CB77-4C72-8916-946A008381C5} /qn /norestart- MSIプロダクトコード
- {B03BAD09-CB77-4C72-8916-946A008381C5}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{B03BAD09-CB77-4C72-8916-946A008381C5}
- UpgradeCode
- {A4C2FE8C-490A-4C52-A57B-9064F60ADCA3}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-ccom.ps1
$url = 'https://github.com/compose-generator/ccom/releases/download/1.6.0/ccom_x64_setup.msi'
$sha256 = '3AC2518344308F97493825B3C26013722EFEB09E093FD812E21687B0E654A606'
$file = Join-Path $env:TEMP 'ccom_x64_setup.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-ccom.ps1
$url = 'https://github.com/compose-generator/ccom/releases/download/1.6.0/ccom_x86_setup.msi'
$sha256 = '570EF130F563D81B0C0362649404E25A7F63E6695A28B5345A74D110B75755CB'
$file = Join-Path $env:TEMP 'ccom_x86_setup.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