免互動安裝EA app、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id ElectronicArts.EADesktop -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ElectronicArts.EADesktop -e --silentwinget uninstall --id ElectronicArts.EADesktop -e --silent依安裝檔
64位元 · EXE(WiX Burn) · 所有使用者
靜默安裝
EAappInstaller-13.813.1.6327-16195906.exe /passive /norestart解除安裝
msiexec /x {250AFF32-1FED-43E8-AED3-72A816A7D007} /qn /norestart- MSI產品代碼
- {250aff32-1fed-43e8-aed3-72a816a7d007}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{250aff32-1fed-43e8-aed3-72a816a7d007}
- UpgradeCode
- {ADF2591E-00D2-4FFF-9BF4-9CCDAE6BDC67}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-ea-app.ps1
$url = 'https://origin-a.akamaihd.net/EA-Desktop-Client-Download/installer-releases/EAappInstaller-13.813.1.6327-16195906.exe'
$sha256 = '85084BBDE077F1DBB0549726D26EDD1C524422E24C3A9AE8EEF5DF9B1967A46A'
$file = Join-Path $env:TEMP 'EAappInstaller-13.813.1.6327-16195906.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 '/passive /norestart' -Wait