Pithflowを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Pithflow.Pithflow -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Pithflow.Pithflow -e --silentwinget uninstall --id Pithflow.Pithflow -e --silentインストーラー別
64ビット · EXE(NSIS)
サイレントインストール
Pithflow_1.41.0_x64-setup.exe /Sインストール先を指定
Pithflow_1.41.0_x64-setup.exe /S /D=C:\Apps\pithflowPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-pithflow.ps1
$url = 'https://pithflow.com/downloads/Pithflow_1.41.0_x64-setup.exe'
$sha256 = 'B3C78F4F91DDE811BC3E9D12C20B8F7E1440D678A32FA58997F77F8E514E72B0'
$file = Join-Path $env:TEMP 'Pithflow_1.41.0_x64-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 '/S' -Wait