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