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