AMD Encoder for OBS Studioを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id OBSProject.obs-amd-encoder -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OBSProject.obs-amd-encoder -e --silentwinget uninstall --id OBSProject.obs-amd-encoder -e --silentインストーラー別
64ビット · EXE(Inno Setup) · 現在のユーザー
サイレントインストール
obs-amd-encoder-2.6.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
obs-amd-encoder-2.6.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\amd-encoder-for-obs-studio"- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{FD6676CE-0580-4B34-9DB4-4879A0BEB31D}_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-amd-encoder-for-obs-studio.ps1
$url = 'https://github.com/obsproject/obs-amd-encoder/releases/download/2.6.0/obs-amd-encoder-2.6.0.0.exe'
$sha256 = '0DFE80EB32351CD96084E1AB9E0585E72806BE8DAF9A105770AE2F652A618C0A'
$file = Join-Path $env:TEMP 'obs-amd-encoder-2.6.0.0.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait