msi2xmlを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id DanielGehriger.MSI2XML -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DanielGehriger.MSI2XML -e --silentwinget uninstall --id DanielGehriger.MSI2XML -e --silentインストーラー別
32ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i download /qn /norestartログを出力
msiexec /i download /qn /norestart /l*v "%TEMP%\msi2xml-install.log"アンインストール
msiexec /x {093801C4-C2CC-441C-AA88-A9A6DDBD42E1} /qn /norestart- MSIプロダクトコード
- {093801C4-C2CC-441C-AA88-A9A6DDBD42E1}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{093801C4-C2CC-441C-AA88-A9A6DDBD42E1}
- UpgradeCode
- {CEB3E401-0801-4D1D-BD9F-2823B98CB297}
- インストール先フォルダー
- %ProgramFiles(x86)%\msi2xml
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-msi2xml.ps1
$url = 'https://sourceforge.net/projects/msi2xml/files/msi2xml/2.2.1/msi2xml-2.2.1.957.msi/download'
$sha256 = '69C9703A6359FB3FB51005652484977AB1746A64D1CE0548E5EEBFBCB450CE22'
$file = Join-Path $env:TEMP 'download'
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