PhraseExpressを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id BartelsMedia.PhraseExpress -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BartelsMedia.PhraseExpress -e --silentwinget uninstall --id BartelsMedia.PhraseExpress -e --silentインストーラー別
32ビット · EXE(Inno Setup) · 現在のユーザー
サイレントインストール
PhraseExpressSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
PhraseExpressSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\phraseexpress"- アンインストール用レジストリキー
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\PhraseExpress_is1
32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
PhraseExpressSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
PhraseExpressSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\phraseexpress"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\PhraseExpress_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-phraseexpress.ps1
$url = 'https://www.phraseexpress.com/PhraseExpressSetup.exe'
$sha256 = '39649B4CBA1E4B89B45955D65E5A2BAEEF7286E81FFBB6826E1DB1721FF1BD7B'
$file = Join-Path $env:TEMP 'PhraseExpressSetup.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-phraseexpress.ps1
$url = 'https://www.phraseexpress.com/PhraseExpressSetup.exe'
$sha256 = '39649B4CBA1E4B89B45955D65E5A2BAEEF7286E81FFBB6826E1DB1721FF1BD7B'
$file = Join-Path $env:TEMP 'PhraseExpressSetup.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