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