免互動安裝LuxTrust Middleware、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id LuxTrust.LuxTrustMiddleware -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LuxTrust.LuxTrustMiddleware -e --silentwinget uninstall --id LuxTrust.LuxTrustMiddleware -e --silent依安裝檔
64位元 · EXE(WiX Burn) · 所有使用者
靜默安裝
LuxTrust_Middleware_1.9.6_Win_64bit.exe /quiet /norestart解除安裝
msiexec /x {779039D2-6794-456F-AF42-0AD209D28C72} /qn /norestart- MSI產品代碼
- {779039d2-6794-456f-af42-0ad209d28c72}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{779039d2-6794-456f-af42-0ad209d28c72}
- UpgradeCode
- {79C2B403-2DF6-411C-A7F0-8F34FECA92A8}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-luxtrust-middleware.ps1
$url = 'https://gitlab.com/LuxTrustPublic/middleware/-/raw/main/LuxTrust_Middleware_1.9.6_Win_64bit.exe'
$sha256 = '4CDF7398E62E841BC71C132D15FB82D5AFAF8566A49B9F46FC662B8AA7B41FDF'
$file = Join-Path $env:TEMP 'LuxTrust_Middleware_1.9.6_Win_64bit.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