免互動安裝AI 安全卫士、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Technicalflight.AiGuard -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Technicalflight.AiGuard -e --silentwinget uninstall --id Technicalflight.AiGuard -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者
靜默安裝
AI._0.1.1_x64-setup.exe /S自訂安裝資料夾
AI._0.1.1_x64-setup.exe /S /D=C:\Apps\ai-technicalflight- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AI 安全卫士
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i AI._0.1.1_x64_zh-CN.msi /qn /norestart寫入記錄檔
msiexec /i AI._0.1.1_x64_zh-CN.msi /qn /norestart /l*v "%TEMP%\ai-technicalflight-install.log"解除安裝
msiexec /x {225449BB-135B-4992-BCA9-F6683A5CB226} /qn /norestart- MSI產品代碼
- {225449BB-135B-4992-BCA9-F6683A5CB226}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{225449BB-135B-4992-BCA9-F6683A5CB226}
- UpgradeCode
- {92EB4B3F-719D-5C29-AE8D-08B85A1AC44E}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-ai-technicalflight.ps1
$url = 'https://github.com/Technicalflight/AiGuard/releases/download/v0.1.1/AI._0.1.1_x64-setup.exe'
$sha256 = '496095DB691CCF9329835CFDA1306F7FE560AFA47D5169C2D1CEF25B1E6E17DE'
$file = Join-Path $env:TEMP 'AI._0.1.1_x64-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 '/S' -Wait install-ai-technicalflight.ps1
$url = 'https://github.com/Technicalflight/AiGuard/releases/download/v0.1.1/AI._0.1.1_x64_zh-CN.msi'
$sha256 = '5D8B4171BCFD898E1AA80F2AE70A168A6F8FC10002ABFE529460680A3B999255'
$file = Join-Path $env:TEMP 'AI._0.1.1_x64_zh-CN.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait