Return a list of all installed ODBC drivers
Posted on 2013-01-25
I'm finalizing a small project I'm working on and I would like to be able to return a list of all installed ODBC drivers to the user so they can select one to use.
Currently, when my project is installed and run on a computer for the first time the user is asked to supply MySQL Server Name, Database, username and password. All this data is saved to an INI file and is used to run a DNSless connection string to join the required tables from the MySQL server.
My reason for asking this question is this. Currently the ODBC driver is hard coded into my code and therefore requires the end user to install a specific MySQL ODBC driver. What I would like to do is allow the user to install any MySQL ODBC driver and then, when they run the programme for the first time they can select the driver from a listbox, enter the relevant server information and continue with the application as normal.
Can anyone point me in the right direction?