Skip to content

Commit

Permalink
pgadmin4-np: Silent user install support (#354)
Browse files Browse the repository at this point in the history
Refresh of installer arguments in order to:

* support silent installs in both user and global contexts => `SUPPRESSMSGBOXES` will let the installer assume local user install
if it does not have admin rights instead of asking for elevated privileges

* get rid of a post_install error in case of local user install 
(because 'pgAdmin 4' folder can't be located under the common
start menu) by using `NOICONS` during install instead of 
trying to remove start menu icons after the fact
  • Loading branch information
c0bw3b authored Oct 23, 2024
1 parent 2634f27 commit 98f86c8
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions bucket/pgadmin4-np.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,23 @@
},
"installer": {
"args": [
"/verysilent",
"/nocancel",
"/norestart",
"/dir=$dir"
"/VERYSILENT",
"/SUPPRESSMSGBOXES",
"/SP-",
"/NOCANCEL",
"/NORESTART",
"/NOICONS",
"/DIR=$dir"
]
},
"post_install": "Remove-Item -Recurse \"$([Environment]::GetFolderPath('commonstartmenu'))\\Programs\\pgAdmin 4\"",
"uninstaller": {
"file": "unins000.exe",
"args": [
"/verysilent",
"/nocancel",
"/norestart"
"/VERYSILENT",
"/SUPPRESSMSGBOXES",
"/SP-",
"/NOCANCEL",
"/NORESTART"
]
},
"bin": [
Expand Down

0 comments on commit 98f86c8

Please sign in to comment.