免互動安裝EventLogExpert、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Microsoft.EventLogExpert -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.EventLogExpert -e --silentwinget uninstall --id Microsoft.EventLogExpert -e --silent依安裝檔
64位元 · MSIX
靜默安裝
Add-AppxPackage -Path EventLogExpert_26.10.28.1091.msixbundle解除安裝
Get-AppxPackage -Name EventLogExpert | Remove-AppxPackage- 安裝資料夾
- %ProgramFiles%\WindowsApps\EventLogExpert_26.10.28.1091_x64__8wekyb3d8bbwe
ARM64 · MSIX
靜默安裝
Add-AppxPackage -Path EventLogExpert_26.10.28.1091.msixbundle解除安裝
Get-AppxPackage -Name EventLogExpert | Remove-AppxPackage- 安裝資料夾
- %ProgramFiles%\WindowsApps\EventLogExpert_26.10.28.1091_arm64__8wekyb3d8bbwe
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-eventlogexpert.ps1
$url = 'https://github.com/microsoft/EventLogExpert/releases/download/v26.10.28.1091/EventLogExpert_26.10.28.1091.msixbundle'
$sha256 = '2259D69FDA18D5DE30023DB96F048D87103FB8D1F18561ED697EE5A1C7127580'
$file = Join-Path $env:TEMP 'EventLogExpert_26.10.28.1091.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-eventlogexpert.ps1
$url = 'https://github.com/microsoft/EventLogExpert/releases/download/v26.10.28.1091/EventLogExpert_26.10.28.1091.msixbundle'
$sha256 = '2259D69FDA18D5DE30023DB96F048D87103FB8D1F18561ED697EE5A1C7127580'
$file = Join-Path $env:TEMP 'EventLogExpert_26.10.28.1091.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file