Caption.Edを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id CareScribe.CaptionEd -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CareScribe.CaptionEd -e --silentwinget uninstall --id CareScribe.CaptionEd -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
Caption.Ed-Installer.exe /Sインストール先を指定
Caption.Ed-Installer.exe /S /D=C:\Apps\caption-ed- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7edd2a3e-4670-5394-b348-8eaa45528ae3
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-caption-ed.ps1
$url = 'https://storage.googleapis.com/captioned-desktop-releases/Caption.Ed-Installer.exe'
$sha256 = '4B4C72C338D29736892FFFBE8DEBF7F3CBF13EDD9E72CF88FE88AF64A04A7E67'
$file = Join-Path $env:TEMP 'Caption.Ed-Installer.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