Link to home
Start Free TrialLog in
Avatar of DickSwart6
DickSwart6

asked on

Check to see if MySQL ODBC 3.51 Driver is installed

How can I check if MySQL ODBC 3.51 Driver is installed on a PC?

and if it is not installed, Install it?

Please help ASAP.
Avatar of Mirtheil
Mirtheil
Flag of United States of America image

Is this within an Install program or within your application?  Either way, you're going to want to check the ODBC registry key for the driver.  The base key is at:
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers
From there, you can check for the MySQL driver. It would be a String Value with the driver name as the name and "Installed" as the value.  If it's not there, you can call out to the ODBC driver install package.  
Avatar of DickSwart6
DickSwart6

ASKER

Ok, How do I Do Both?

It will be better id I can do it when I Install the App, but if I have to I do it in the app itself.

Now the question is HOW?

Which install tool are you using?  Most install tools offer a way to check a registry setting and then perform an action like launching an external program (like the ODBC Driver package).  
Visual Studio Instaler, Where and how?
ASKER CERTIFIED SOLUTION
Avatar of Mirtheil
Mirtheil
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial