Phrase Strings CLIを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリと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