AW: Is there some parameter/flag I can use to make pgAdmin 4 updatesilently without the GUI? - Mailing list pgadmin-support

From Osdoba, Sascha
Subject AW: Is there some parameter/flag I can use to make pgAdmin 4 updatesilently without the GUI?
Date
Msg-id 5fb78c4b7dbd43d7b316e57d9a369c45@gsi.de
Whole thread Raw
In response to Is there some parameter/flag I can use to make pgAdmin 4 updatesilently without the GUI?  (tutiluren@tutanota.com)
List pgadmin-support

My batch script, used to deploy PGAdmin via software deployment tool:

 

checking which OS version is installed, you can remove the query and if goto lines

Uninstall old versions, if there are none of them you can remove  those lines

Install prerequisites if there are not installed already, if installed you also can remove those lines

Installing latest version with a logfile written

 

 

@echo off

echo %processor_architecture%

 

if %PROCESSOR_ARCHITECTURE% == AMD64 goto 64bit

if %PROCESSOR_ARCHITECTURE% == x86 goto 32bit

 

:64bit

"C:\Program Files (x86)\pgAdmin 4\v1\unins000.exe" /verysilent /norestart /LOG="C:\Windows\logs\pgadmin4v1_6_uninstall.log"

timeout 20

"C:\Program Files (x86)\pgAdmin 4\v2\unins000.exe" /verysilent /norestart /LOG="C:\Windows\logs\pgadmin4v2_1_uninstall.log"

timeout 20

"C:\Program Files (x86)\pgAdmin 4\v3\unins000.exe" /verysilent /norestart /LOG="C:\Windows\logs\pgadmin4v3_0_uninstall.log"

timeout 20

"C:\Program Files (x86)\pgAdmin 4\v4\unins000.exe" /verysilent /norestart /LOG="C:\Windows\logs\pgadmin4v4_0_uninstall.log"

timeout 20

vcredist_x64.exe /install /quiet /norestart /noreboot /log %windir%\logs\vcredist_2013_x64_install_12.0.30501.log

timeout 10

vcredist_x86.exe /install /quiet /norestart /noreboot /log %windir%\logs\vcredist_2013_x86_install_12.0.30501.log

timeout 10

pgadmin4-4.19-x86.exe /verysilent /norestart /LOG="C:\Windows\logs\pgadmin4v4_19_install.log"

exit

 

:32bit

"C:\Program Files\pgAdmin 4\v1\unins000.exe" /verysilent /norestart /LOG="C:\Windows\logs\pgadmin4v1_6_uninstall.log"

timeout 20

"C:\Program Files\pgAdmin 4\v2\unins000.exe" /verysilent /norestart /LOG="C:\Windows\logs\pgadmin4v2_1_uninstall.log"

timeout 20

"C:\Program Files\pgAdmin 4\v3\unins000.exe" /verysilent /norestart /LOG="C:\Windows\logs\pgadmin4v3_0_uninstall.log"

timeout 20

"C:\Program Files\pgAdmin 4\v4\unins000.exe" /verysilent /norestart /LOG="C:\Windows\logs\pgadmin4v4_0_uninstall.log"

timeout 20

vcredist_x86.exe /install /quiet /norestart /noreboot /log %windir%\logs\vcredist_2013_x86_install_12.0.30501.log

timeout 10

pgadmin4-4.19-x86.exe /verysilent /norestart /LOG="C:\Windows\logs\pgadmin4v4_19_install.log"

exit

 

 

 

Sascha

 

Von: tutiluren@tutanota.com <tutiluren@tutanota.com>
Gesendet: Freitag, 6. März 2020 06:57
An: Pgadmin Support <pgadmin-support@lists.postgresql.org>
Betreff: Is there some parameter/flag I can use to make pgAdmin 4 update silently without the GUI?

 

Every single time pgAdmin 4 has an update, I have made it so that it grabs the latest installer (this is on Windows) and puts it on my desktop, then notifies me. I then have to manually run this GUI program, it treating the experience as if I were installing it for the first time, click a bunch of times, have it close the currently running old version, wait, and finally get to use the new version.

 

Is there some kind of thing I can do as a scripted cmd.exe command such as:

 

new_pg_installer.exe --update-silently

 

Which would take care of the update "silently", without opening any GUI window or in any way bothering me as a human being? That would be swell if you could add it, if it doesn't exist. It's really a chore to go through those tedious, focus-stealing "manual updates"!

pgadmin-support by date:

Previous
From: tutiluren@tutanota.com
Date:
Subject: Is there some parameter/flag I can use to make pgAdmin 4 updatesilently without the GUI?
Next
From: bw
Date:
Subject: Re: Graphical Query Builder Support