Add support for PostgreSQL 18 on Windows: new winget input manifest and per-machine installer/uninstaller PowerShell scripts; outputs metadata for version 18.4-1 (installer URL, sha256, and script refs) and app registration in apps.json. Also add frontend icon component and 60x60 image asset, and update icons index to include the new icon. This enables silent install/uninstall via the EnterpriseDB (BitRock) installer and exposes the app in the software listing.
26 lines
674 B
PowerShell
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\18 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
|
|
}
|