Files
Allen Houchins c287582531 Add PostgreSQL 15-17 as Windows FMAs (#47048)
Add winget inputs, install/uninstall scripts, and outputs for PostgreSQL
15, 16 and 17. Each version includes a JSON input manifest,
install/uninstall PowerShell scripts (EnterpriseDB/BitRock installer
with --mode unattended and --unattendedmodeui none), and generated
outputs (per-version windows.json refs and apps.json entries). Also add
frontend SVG icon components and 2x PNG assets for each version to
display in the UI.
2026-06-07 20:27:08 -05:00

26 lines
674 B
PowerShell

$exeFilePath = "${env:INSTALLER_PATH}"
try {
# EnterpriseDB (BitRock InstallBuilder) installer. Switches from the winget
# manifest: --mode unattended for a non-interactive install, --unattendedmodeui
# none to suppress all progress UI. Installs per-machine under
# C:\Program Files\PostgreSQL\16 and registers in HKLM Add/Remove Programs.
$processOptions = @{
FilePath = "$exeFilePath"
ArgumentList = "--mode", "unattended", "--unattendedmodeui", "none"
PassThru = $true
Wait = $true
}
$process = Start-Process @processOptions
$exitCode = $process.ExitCode
Write-Host "Install exit code: $exitCode"
Exit $exitCode
} catch {
Write-Host "Error: $_"
Exit 1
}