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