Bespoke Synthを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id BespokeSynth.BespokeSynth -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BespokeSynth.BespokeSynth -e --silentwinget uninstall --id BespokeSynth.BespokeSynth -e --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i BespokeSynth-Windows-1_3_0.msi /qn /norestartログを出力
msiexec /i BespokeSynth-Windows-1_3_0.msi /qn /norestart /l*v "%TEMP%\bespoke-synth-install.log"アンインストール
msiexec /x {A0D895AC-FFC6-4F5F-98C8-B8A5646BBD09} /qn /norestart- MSIプロダクトコード
- {A0D895AC-FFC6-4F5F-98C8-B8A5646BBD09}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A0D895AC-FFC6-4F5F-98C8-B8A5646BBD09}
- UpgradeCode
- {BA790D99-4D2C-4E33-A92D-219970637FCA}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-bespoke-synth.ps1
$url = 'https://github.com/BespokeSynth/BespokeSynth/releases/download/v1.3.0/BespokeSynth-Windows-1_3_0.msi'
$sha256 = '796655E0ED70999782015FB5D94D167C691EEC706D676B89B01BF02722D2741A'
$file = Join-Path $env:TEMP 'BespokeSynth-Windows-1_3_0.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