免互動安裝tty7、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id l0ng-ai.tty7 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id l0ng-ai.tty7 -e --silentwinget uninstall --id l0ng-ai.tty7 -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
tty7-26.10.0-windows-x86_64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
tty7-26.10.0-windows-x86_64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\tty7"- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9A3F6C1E-4B7D-4E2A-8C5F-D01B92E64A37}_is1
- 安裝資料夾
- %LocalAppData%\Programs\tty7
64位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
tty7-26.10.0-windows-x86_64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
tty7-26.10.0-windows-x86_64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\tty7"- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9A3F6C1E-4B7D-4E2A-8C5F-D01B92E64A37}_is1
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-tty7.ps1
$url = 'https://github.com/l0ng-ai/tty7/releases/download/v26.10.0/tty7-26.10.0-windows-x86_64-setup.exe'
$sha256 = 'AB76CC9C367BA8007A90C200A970643314E2AD726AA8A47632BC1A328A48EAE0'
$file = Join-Path $env:TEMP 'tty7-26.10.0-windows-x86_64-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-tty7.ps1
$url = 'https://github.com/l0ng-ai/tty7/releases/download/v26.10.0/tty7-26.10.0-windows-x86_64-setup.exe'
$sha256 = 'AB76CC9C367BA8007A90C200A970643314E2AD726AA8A47632BC1A328A48EAE0'
$file = Join-Path $env:TEMP 'tty7-26.10.0-windows-x86_64-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait