Hi Carl,
Welcometo MSDN forums!
How would I be able to detect if the ODBC MySQL 5.1 driver is installed before a connection attempt?
->
You can check if the ODBC key value existsin Registry like this:
If My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ODBC\ODBC Drivers", "TestValue", Nothing) Is Nothing Then
MessageBox.Show("Value does not exist")
Else
MessageBox.Show("Value exists")
End If
FAQ/Instruction/Samples: How do I check/read/write the Registry in VB.NET
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/255841ae-7a18-47dd-913f-69222b068fe4
Best regards,
Martin Xie
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.