FeedDemonを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id NewsGator.FeedDemon -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NewsGator.FeedDemon -e --silentwinget uninstall --id NewsGator.FeedDemon -e --silentインストーラー別
32ビット · EXE(Inno Setup)
サイレントインストール
FeedDemonInstall45.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
FeedDemonInstall45.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\feeddemon"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-feeddemon.ps1
$url = 'http://bradsoft.com/download/FeedDemonInstall45.exe'
$sha256 = 'A60A4E8DFD0F194E235F232FB525F84A6F6984E910E3C44B2DE772F3035601DD'
$file = Join-Path $env:TEMP 'FeedDemonInstall45.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait