Skip to main content

Silent Installation of pgAdmin 4.2





What is It?
pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.

The source is available for download here.


How to Install Silently?

To Install:

Step 1: Download the source from web and get the installer "pgadmin4-2.0-x86.exe"

Step 2: Run following command:
pgadmin4-2.0-x86.exe /VERYSILENT /LOG /NORESTART

                /VERYSILENT: for fully silent installation. /SILENT or /SP or /SUPRESSMSGBOXES are other varieties for different level of user interface
                  /NORESTART: to suppress any restart prompt
                  /LOG="path of log file"

To Uninstall:


Run following command:
"%ProgramFiles(x86)%\pgAdmin 4\v2\unins000.exe" /VERYSILENT /NORESTART

                /VERYSILENT: for silent installation
                /NORESTART: to suppress any restart prompts

Additional Notes:

  • Above mentioned install/uninstall instructions are created based on version 4.2 of pgAdmin in 64-bit machine.
  • Ensure that pgAdmin (pgAdmin4.exe) isn't running during upgrade/uninstall of the application, to avoid any data loss.
Note: This can be taken care by a new feature introduced from SCCM 1702 onwards. "Install Behavior" option under "Deployment Method" enables process kill before install process executes. So, people using SCCM latest version, can use this feature rather than Taskkill in Windows.
  • Command executions are based on SCCM platform or used with tools like PsExec, to make them run in System Context only.
  • Suggested detection Method in SCCM:
Setting Type: Registry
Hive: HKLM
Key: SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\pgAdmin 4v2_is1
Value: DisplayVersion
Data Type: String
Operator: Equals
Value: 2.0

Comments

Post a Comment