ffstudioを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
インストーラー別
64ビット · MSI
サイレントインストール
msiexec /i ffstudio-0.2.8-x86_64-pc-windows-msvc.msi /qn /norestartログを出力
msiexec /i ffstudio-0.2.8-x86_64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\ffstudio-install.log"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-ffstudio.ps1
$url = 'https://github.com/Draver93/ff-studio/releases/download/v0.2.8/ffstudio-0.2.8-x86_64-pc-windows-msvc.msi'
$sha256 = '66244C0469762252E09A06FE4535217BD6A5C550B27F2175849D62BA875E074C'
$file = Join-Path $env:TEMP 'ffstudio-0.2.8-x86_64-pc-windows-msvc.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait