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