免互動安裝Phrase Strings CLI、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Phrase.PhraseCLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Phrase.PhraseCLI -e --silentwinget uninstall --id Phrase.PhraseCLI -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
phrase_windows_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
phrase_windows_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\phrase-strings-cli"- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DC598D8E-8A9B-4CAD-AFD8-0324FDF4E0F1}_is1
64位元 · 免安裝版
免安裝(可攜版)
32位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
phrase_windows_setup_386.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
phrase_windows_setup_386.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\phrase-strings-cli"- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{DC598D8E-8A9B-4CAD-AFD8-0324FDF4E0F1}_is1
32位元 · 免安裝版
免安裝(可攜版)
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-phrase-strings-cli.ps1
$url = 'https://github.com/phrase/phrase-cli/releases/download/2.71.0/phrase_windows_setup.exe'
$sha256 = 'FF32059C2CDFFEC63C5ECDC5DC2E2A9803353361197AF9202D61F7921C8D02C2'
$file = Join-Path $env:TEMP 'phrase_windows_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-phrase-strings-cli.ps1
$url = 'https://github.com/phrase/phrase-cli/releases/download/2.71.0/phrase_windows_setup_386.exe'
$sha256 = '2D4F09146CAFC2B0A98B51894133A1A2B21B63C91D5792365B267227A2D1E035'
$file = Join-Path $env:TEMP 'phrase_windows_setup_386.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