diff --git a/pgadmin4.xml b/pgadmin4.xml new file mode 100755 index 0000000000000000000000000000000000000000..ec99772c7ec805b464dfa50b6098c2aec6bb33a7 --- /dev/null +++ b/pgadmin4.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- vim: set softtabstop=3: --> +<packages> + <package id="pgadmin4" name="pgAdmin 4" revision="%version%.1" priority="0" reboot="false"> + <variable name="majorversion" value="4" /> + <variable name="minorversion" value="14" /> + <variable name="version" value="%majorversion%.%minorversion%" /> + + <depends package-id="vs2013x86runtime" /> + + <check type="uninstall" condition="exists" path="pgAdmin 4 version %version%" /> + + <install cmd='%software%\pgadmin\pgadmin4-%version%-x86.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART' /> + <install cmd='cmd /c copy %software%\pgadmin\config_local.py "%programfileswpkg%\pgadmin 4\v%majorversion%\web\"' /> + + <upgrade include='remove' /> + <upgrade include='install' /> + + <!-- remove our config file: the uninstaller does not, and thus also leaves the directory tree behind --> + <remove cmd='cmd /c del "%programfileswpkg%\pgadmin 4\v%majorversion%\web\config_local.py"'> + <exit code='any'/> + </remove> + <remove cmd='"%programfileswpkg%\pgadmin 4\v%majorversion%\unins000.exe" /VERYSILENT /SP- /NORESTART' /> + + </package> +</packages>