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