FutureRestore GUIを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id CoocooFroggy.FutureRestore-GUI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CoocooFroggy.FutureRestore-GUI -e --silentwinget uninstall --id CoocooFroggy.FutureRestore-GUI -e --silentインストーラー別
64ビット · MSI
サイレントインストール
msiexec /i FutureRestore-GUI-Windows-1.98.3.msi /qn /norestartログを出力
msiexec /i FutureRestore-GUI-Windows-1.98.3.msi /qn /norestart /l*v "%TEMP%\futurerestore-gui-install.log"アンインストール
msiexec /x {EB4E45EB-BFC3-30D6-9D37-05E6BE8D2FE6} /qn /norestart- MSIプロダクトコード
- {EB4E45EB-BFC3-30D6-9D37-05E6BE8D2FE6}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{EB4E45EB-BFC3-30D6-9D37-05E6BE8D2FE6}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-futurerestore-gui.ps1
$url = 'https://github.com/CoocooFroggy/FutureRestore-GUI/releases/download/v1.98.3/FutureRestore-GUI-Windows-1.98.3.msi'
$sha256 = '42F9AC7F002F74845D8A4599F4D8424F6B5B39CFFC4CD3FF4321470D68A24154'
$file = Join-Path $env:TEMP 'FutureRestore-GUI-Windows-1.98.3.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