Proper/offcial way to detect installed psqlODBC version on Windows? - Mailing list pgsql-odbc

From Jan-Peter Seifert
Subject Proper/offcial way to detect installed psqlODBC version on Windows?
Date
Msg-id trinity-518ef4f4-1c98-4043-ad47-5b82b054b0e5-1718186453297@3c-app-gmx-bap11
Whole thread Raw
List pgsql-odbc
Hello,

our software setup program checks whether psqlODBC is installed in the correct version - currently 15.00.0000.

It checks the value Driver in the registry keys HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\ODBC\ODBCINST.INI\PostgreSQL
Unicode(32 Bit) or HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL Unicode(x64) (64 bit) and reads/checks the
versionof the referred dll afterwards.
 

I noticed that there are also the registry keys HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\psqlODBC (32 bit) and
HKEY_LOCAL_MACHINE\SOFTWARE\psqlODBC_x64(64 bit) with the value Version. Should the setup checks this value instead?
 

What is the recommended way to do this?

Thank you very much in advance!

Best regards,

Peter



pgsql-odbc by date:

Previous
From: Hunaid Sohail
Date:
Subject: Re: ODBC Source Downloads Missing
Next
From: Alberto Sottile
Date:
Subject: Which version of psqlODBC should I install?