免互動安裝EVB Player、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id EugeneBarsky.EVBPlayer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id EugeneBarsky.EVBPlayer -e --silentwinget uninstall --id EugeneBarsky.EVBPlayer -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者
靜默安裝
EVB-Player-0.2.7-x64-setup.exe /S自訂安裝資料夾
EVB-Player-0.2.7-x64-setup.exe /S /D=C:\Apps\evb-player- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\c94747a7-5d2b-56ae-813e-98c1b40550a3
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-evb-player.ps1
$url = 'https://github.com/evb0110/evb-player/releases/download/v0.2.7/EVB-Player-0.2.7-x64-setup.exe'
$sha256 = '9CFC52F669F55DBA9079B4C80363821865AA44781292B321CC7DA956C7601775'
$file = Join-Path $env:TEMP 'EVB-Player-0.2.7-x64-setup.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