Commands for installing Postgres Pro Standard 13 without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id PostgresPro.Standard.13 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PostgresPro.Standard.13 -e --silentwinget uninstall --id PostgresPro.Standard.13 -e --silentBy installer
64-bit · EXE (NSIS) · All users · en-US
Silent install
PostgreSQL_13.23_64bit_Setup.exe /SCustom folder
PostgreSQL_13.23_64bit_Setup.exe /S /D=C:\Apps\postgres-pro-standard-13PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-postgres-pro-standard-13.ps1
$url = 'https://repo.postgrespro.ru/win/64/PostgreSQL_13.23_64bit_Setup.exe'
$sha256 = '123494381B0073E794B23388EC5549F5C98557616D7BAE3E87E87EFDEEF0ACBD'
$file = Join-Path $env:TEMP 'PostgreSQL_13.23_64bit_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 '/S' -Wait