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