pgAdmin is a management tool for PostgreSQL and derivative relational databases such as EnterpriseDB’s EDB Advanced Server. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of pgAdmin from the command line using the EXE installer.
How to Install pgAdmin Silently
pgAdmin 4 (32-bit) Silent Install (EXE)
- Navigate to: https://ftp.postgresql.org/pub/pgadmin/pgadmin4/
- Select the version of your choice
- Download the pgadmin4-x.x-x86.exe to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command: pgadmin4-x.x-x86.exe /VERYSILENT /NORESTART /ALLUSERS
- Press Enter
After a few moments you should see the pgAdmin shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | pgAdmin 4 |
Vendor: | The pgAdmin Development Team |
Version: | 4.x |
Architecture: | x86 |
Installer Type: | EXE |
Silent Install Switch: | pgadmin4-x.x-x86.exe /VERYSILENT /NORESTART /ALLUSERS |
Silent Uninstall Switch (32-bit System) | "%ProgramFiles%\pgAdmin 4\v4\unins000.exe" /VERYSILENT /NORESTART |
Silent Uninstall Switch (64-bit System) | "%ProgramFiles(x86)%\pgAdmin 4\v4\unins000.exe" /VERYSILENT /NORESTART |
Download Link: | https://ftp.postgresql.org/pub/pgadmin/pgadmin4/ |
PowerShell Script: | https://silentinstallhq.com/pgadmin-install-and-uninstall-powershell/ |
Detection Script: | https://silentinstallhq.com/create-a-custom-detection-script-for-pgadmin-powershell/ |
pgAdmin 4 (64-bit) Silent Install (EXE)
- Navigate to: https://ftp.postgresql.org/pub/pgadmin/pgadmin4/
- Select the version of your choice
- Download the pgadmin4-x.x-x64.exe to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command: pgadmin4-x.x-x64.exe /VERYSILENT /NORESTART /ALLUSERS
- Press Enter
After a few moments you should see the pgAdmin shortcut in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | pgAdmin 4 |
Vendor: | The pgAdmin Development Team |
Version: | 4.x |
Architecture: | x64 |
Installer Type: | EXE |
Silent Install Switch: | pgadmin4-x.x-x64.exe /VERYSILENT /NORESTART /ALLUSERS |
Silent Uninstall Switch | "%ProgramFiles%\pgAdmin 4\v4\unins000.exe" /VERYSILENT /NORESTART |
Download Link: | https://ftp.postgresql.org/pub/pgadmin/pgadmin4/ |
PowerShell Script: | https://silentinstallhq.com/pgadmin-install-and-uninstall-powershell/ |
Detection Script: | https://silentinstallhq.com/create-a-custom-detection-script-for-pgadmin-powershell/ |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Additional Configurations
Create a pgAdmin Installation Log File
The pgAdmin installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.
pgAdmin 4 (32-bit) Silent Install (EXE) with Logging
pgadmin4-x.x-x86.exe /VERYSILENT /NORESTART /ALLUSERS /LOG="%WINDIR%\Temp\pgAdmin-Install.log" |
pgAdmin 4 (64-bit) Silent Install (EXE) with Logging
pgadmin4-x.x-x64.exe /VERYSILENT /NORESTART /ALLUSERS /LOG="%WINDIR%\Temp\pgAdmin-Install.log" |
Change the pqAdmin Default Installation Directory
You can change the default installation directory by using the following command line parameters. In this example, I’m installing pgAdmin to “C:\pgAdmin”
pgadmin4-x.x-x64.exe /DIR=C:\pgAdmin /VERYSILENT /NORESTART /ALLUSERS |
How to Uninstall pgAdmin Silently
Check out the following posts for a scripted solution:
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter one of the following commands:
pgAdmin 4 (32-bit) on 32-bit System
"%ProgramFiles%\pgAdmin 4\v4\unins000.exe" /VERYSILENT /NORESTART |
pgAdmin 4 (32-bit) on 64-bit System
"%ProgramFiles(x86)%\pgAdmin 4\v4\unins000.exe" /VERYSILENT /NORESTART |
pgAdmin 4 (64-bit) on 64-bit System
"%ProgramFiles%\pgAdmin 4\v4\unins000.exe" /VERYSILENT /NORESTART |
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.