免互動安裝HLAE、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id advancedfx.HLAE -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id advancedfx.HLAE -e --silentwinget uninstall --id advancedfx.HLAE -e --silent依安裝檔
32位元 · EXE(WiX Burn) · 所有使用者
靜默安裝
HLAE_Setup.exe /quiet /norestart解除安裝
msiexec /x {C1A2398B-053C-4C7F-9F1B-53759139E394} /qn /norestart- MSI產品代碼
- {C1A2398B-053C-4C7F-9F1B-53759139E394}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{C1A2398B-053C-4C7F-9F1B-53759139E394}
- UpgradeCode
- {35C8D990-6C4F-4639-ADF7-D259B06E070B}
- 安裝資料夾
- %ProgramFiles(x86)%\HLAE
- DisplayVersion
- 2.192.10
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-hlae.ps1
$url = 'https://github.com/advancedfx/advancedfx/releases/download/v2.192.10/HLAE_Setup.exe'
$sha256 = 'FB4494F8B6C364205ADEC0DED98A3BA8DA879897436ADEF3B20B563B4574A0EF'
$file = Join-Path $env:TEMP 'HLAE_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 '/quiet /norestart' -Wait