Renodeを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Renode.Renode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Renode.Renode -e --silentwinget uninstall --id Renode.Renode -e --silentインストーラー別
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i renode_1.16.0.msi /qn /norestartログを出力
msiexec /i renode_1.16.0.msi /qn /norestart /l*v "%TEMP%\renode-install.log"アンインストール
msiexec /x {C7801998-BC27-4FAF-89B2-4FDC60566F7B} /qn /norestart- MSIプロダクトコード
- {C7801998-BC27-4FAF-89B2-4FDC60566F7B}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C7801998-BC27-4FAF-89B2-4FDC60566F7B}
- UpgradeCode
- {7E549C3F-A15A-4101-8071-9D52A16A28F6}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-renode.ps1
$url = 'https://github.com/renode/renode/releases/download/v1.16.0/renode_1.16.0.msi'
$sha256 = 'CB72DDC91B74831A74FEA758449D60BEA670A20750E01079E535C7857E0F4C9B'
$file = Join-Path $env:TEMP 'renode_1.16.0.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