DroidCam OBS Pluginを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id dev47apps.DroidCamOBSPlugin -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id dev47apps.DroidCamOBSPlugin -e --silentwinget uninstall --id dev47apps.DroidCamOBSPlugin -e --silentインストーラー別
32ビット · EXE(NSIS) · すべてのユーザー · en-US
サイレントインストール
DroidCamOBS.Setup.2.5.1.exe /Sインストール先を指定
DroidCamOBS.Setup.2.5.1.exe /S /D=C:\Apps\droidcam-obs-plugin- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\OBSDroidCam
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-droidcam-obs-plugin.ps1
$url = 'https://github.com/dev47apps/droidcam-obs-plugin/releases/download/2.5.1/DroidCamOBS.Setup.2.5.1.exe'
$sha256 = 'FB20D899CD2AA45B3670E7EE10A5E90130DC489321770DD271B701D82522DB31'
$file = Join-Path $env:TEMP 'DroidCamOBS.Setup.2.5.1.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 '/S' -Wait