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.
Visual Basic Classic

Avatar of undefined
Last Comment
Mirtheil

8/22/2022 - Mon
Mirtheil

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.  
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?

Mirtheil

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).  
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
DickSwart6

ASKER
Visual Studio Instaler, Where and how?
ASKER CERTIFIED SOLUTION
Mirtheil

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question