OpenDCL Runtimeを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id OpenDCL.Runtime -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenDCL.Runtime -e --silentwinget uninstall --id OpenDCL.Runtime -e --silentインストーラー別
32ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i OpenDCL.Runtime.10.1.2.1.msi /qn /norestart /qn /norestart ALLUSERS=1ログを出力
msiexec /i OpenDCL.Runtime.10.1.2.1.msi /qn /norestart /qn /norestart ALLUSERS=1 /l*v "%TEMP%\opendcl-runtime-install.log"アンインストール
msiexec /x {4D67B2FE-F5BC-4EC2-B4BC-F11BA921AE7F} /qn /norestart- MSIプロダクトコード
- {4D67B2FE-F5BC-4EC2-B4BC-F11BA921AE7F}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{4D67B2FE-F5BC-4EC2-B4BC-F11BA921AE7F}
- UpgradeCode
- {A3675613-313B-47AC-8DD2-8707F33610AB}
- DisplayVersion
- 10.1.201
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-opendcl-runtime.ps1
$url = 'https://github.com/opendcl/OpenDCL/releases/download/v10.1.2.1/OpenDCL.Runtime.10.1.2.1.msi'
$sha256 = '3FA7864DE68ABEAAFFB1F5B2157E54ECC6B5116C05022C566F8505CF73A61942'
$file = Join-Path $env:TEMP 'OpenDCL.Runtime.10.1.2.1.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', '/qn /norestart ALLUSERS=1' -Wait