[GENERAL] Programmatic method to determine currently installed Windows PostrgreSQL version

2005-11-07 Thread Will Wright
Hi, I'm in the process of creating an Windows installation package for a product that uses PostgreSQL. During the installation I would like to check if PostgreSQL is installed and if it is, which version. I think that I can infer that PostgreSQL is installed by searching for the \HKLM\SOFTWARE\P

Re: [GENERAL] Programmatic method to determine currently installed Windows PostrgreSQL version

2005-11-07 Thread Will Wright
--- Magnus Hagander <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm in the process of creating an Windows > installation > > package for a product that uses PostgreSQL. > > > > During the installation I would like to check if > PostgreSQL > > is installed and if it is, which version. > > > > I

Re: [GENERAL] Programmatic method to determine currently installed Windows PostrgreSQL version

2005-11-08 Thread Will Wright
Thanks Richard, I will look into whether or not I will have access to the SELECT statement. Regards, Will --- Richard Huxton wrote: > Will Wright wrote: > > > > Hi Magnus, thanks for the quick response. > > Unfortunately I still have an issue with this > regsitry &

Re: [GENERAL] Programmatic method to determine currently installed Windows PostrgreSQL version

2005-11-08 Thread Will Wright
Thanks Magnus. Much appreciated. Will --- Magnus Hagander <[EMAIL PROTECTED]> wrote: > > > HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\{317D0ED1 > > > > -8845-40DD-A028-0A3EB8E24F2E} > > > > "Version"="8.1-beta4" > > > > > > > > So it looks like the version number is > underneath > >