Pure Dataを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id MillerPuckette.PureData -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MillerPuckette.PureData -e --silentwinget uninstall --id MillerPuckette.PureData -e --silentインストーラー別
64ビット · EXE
サイレントインストール
pd-0.57-0.windows-installer.exe /SPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-pure-data.ps1
$url = 'https://msp.ucsd.edu/Software/pd-0.57-0.windows-installer.exe'
$sha256 = '6C1DC1DE251A9E130B8229165EF5932B54F89672376A78ED5FD650C6945439A8'
$file = Join-Path $env:TEMP 'pd-0.57-0.windows-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