免互動安裝LanmarkTekFix Support Agent、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Lanmark.TekFixSupportAgent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Lanmark.TekFixSupportAgent -e --silentwinget uninstall --id Lanmark.TekFixSupportAgent -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
LanmarkTekFixSetup_v3.1.2_Silent.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART自訂安裝資料夾
LanmarkTekFixSetup_v3.1.2_Silent.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\lanmarktekfix-support-agent"PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-lanmarktekfix-support-agent.ps1
$url = 'https://github.com/Tekfixai/tekfix-releases/releases/download/v3.1.2/LanmarkTekFixSetup_v3.1.2_Silent.exe'
$sha256 = 'BDEA25936C53A7F10A580F89FE00CF6D20147871BF942241B474B813E6AF0CBC'
$file = Join-Path $env:TEMP 'LanmarkTekFixSetup_v3.1.2_Silent.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART' -Wait