FlashDEGを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id WinNGS.FlashDEG -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id WinNGS.FlashDEG -e --silentwinget uninstall --id WinNGS.FlashDEG -e --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i flashdeg-1.1.0-windows-x86_64.msi /qn /norestart /qnログを出力
msiexec /i flashdeg-1.1.0-windows-x86_64.msi /qn /norestart /qn /l*v "%TEMP%\flashdeg-install.log"アンインストール
msiexec /x {27D6B43F-5E96-4995-956B-D84B7CBD88E4} /qn /norestart- MSIプロダクトコード
- {27D6B43F-5E96-4995-956B-D84B7CBD88E4}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{27D6B43F-5E96-4995-956B-D84B7CBD88E4}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-flashdeg.ps1
$url = 'https://github.com/tus-kondolab/flashdeg/releases/download/v1.1.0/flashdeg-1.1.0-windows-x86_64.msi'
$sha256 = 'A922272FCF6367C25C1EE60549A202F72579810D1538CEC519F7E4BC71729CE5'
$file = Join-Path $env:TEMP 'flashdeg-1.1.0-windows-x86_64.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', '/qn' -Wait