H.264 Encoderを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id SoftSea.H264Encoder -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SoftSea.H264Encoder -e --silentwinget uninstall --id SoftSea.H264Encoder -e --silentインストーラー別
32ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
get.php /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
get.php /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\h-264-encoder"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{B99459D2-B91A-417E-9DFA-F53D569F4445}_is1
- インストール先フォルダー
- %ProgramFiles%\H.264 Encoder
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-h-264-encoder.ps1
$url = 'https://file1.softsea.com/get.php?file=h264encoder_setup.exe'
$sha256 = '48F23A56116F827B5F24413A07C90633A74CCC9E062FE5596B810D1CFC959410'
$file = Join-Path $env:TEMP 'get.php'
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