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