免互動安裝DroidCam OBS Plugin、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或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