Wingetlywingetly
← Back to PostgreSQL 10

Silent install command for PostgreSQL 10 10

The exact silent switches the PostgreSQL 10 installer accepts, plus a one-line command you can paste into a script, Intune Win32 app, or Configuration Manager package.

One-line silent install (x64, machine scope)
postgresql-10.23-1-windows-x64.exe --mode unattended --unattendedmodeui none

Run from the directory containing postgresql-10.23-1-windows-x64.exe. Download the installer from the Direct link below first. Run an elevated terminal (Run as Administrator) for machine-scope installs.

ArchitectureScopeTypeSilent switchesSource
x64machineEXEDeclared by publisher
x86machineEXEDeclared by publisher
  • Declared by publisher means the switches come straight from the winget manifest the publisher (or community maintainer) submitted to microsoft/winget-pkgs.
  • Default for {type} means the manifest doesn't specify silent switches, so the framework's standard switches are shown (e.g. /S for NSIS, /quiet /norestart for MSI).

Frequently asked questions

What is the silent install command for PostgreSQL 10?
PostgreSQL 10 uses EXE. After downloading the installer, run: postgresql-10.23-1-windows-x64.exe --mode unattended --unattendedmodeui none. The silent install switches are --mode unattended --unattendedmodeui none.
How do I deploy PostgreSQL 10 via Intune or Configuration Manager?
Use winget for the cleanest path: winget install --id PostgreSQL.PostgreSQL.10 --exact 10 --silent --accept-package-agreements --accept-source-agreements. If winget isn't viable in your environment, package the publisher's installer directly using the silent switches above.
Where do these silent switches come from?
The switches marked "Declared by publisher" come from the winget manifest the publisher (or community maintainer) submitted to microsoft/winget-pkgs. Switches marked "Default for EXE" come from the installer framework's documented defaults.

Prefer the winget route? See the full PostgreSQL 10 install page.