speedy6 Posted June 9, 2007 Posted June 9, 2007 Anyone know how to check if MySQL Connector/ODBC already is installed?... it doesn't have a dir in program files.... thx
Proph Posted June 10, 2007 Posted June 10, 2007 This is what I use in one of my programs: CODE$InstallDriver = 'No' If Not FileExists(@WindowsDir&'\System32\myodbc3.dll') Then FileInstall('files\myodbc3.dll', @WindowsDir&'\System32\myodbc3.dll') $InstallDriver = 'Yes' EndIf If Not FileExists(@WindowsDir&'\System32\myodbc3.lib') Then FileInstall('files\myodbc3.lib', @WindowsDir&'\System32\myodbc3.lib') $InstallDriver = 'Yes' EndIf If Not FileExists(@WindowsDir&'\System32\myodbc3i.exe') Then FileInstall('files\myodbc3i.exe', @WindowsDir&'\System32\myodbc3i.exe') $InstallDriver = 'Yes' EndIf If Not FileExists(@WindowsDir&'\System32\msvcr71.dll') Then FileInstall('files\msvcr71.dll', @WindowsDir&'\System32\msvcr71.dll') $InstallDriver = 'Yes' EndIf If $InstallDriver = 'Yes' Then RunWait(@comspec & ' /c myodbc3i -a -d -t"MySQL ODBC 3.51 Driver;DRIVER=myodbc3.dll;SETUP=myodbc3S.dll"', '', @SW_HIDE) EndIf This checks if it allready exists. If it does not fully exist then it installs it.
speedy6 Posted June 10, 2007 Author Posted June 10, 2007 Are you sure is that for > MySQL Connector/ODBC 3.51 , because, i've installed it, and he said NO, so...
lordofthestrings Posted June 10, 2007 Posted June 10, 2007 Speedy: open on that PC (on which you installed the driver) odbcad32 (start --> run) there you have the "drivers" tabpage. on that page you'll see the mysql Driver. in that tabpage, you'll see name, version, companyname, and filename. that's the file you're looking for on the computers.. have a nice day,
speedy6 Posted June 10, 2007 Author Posted June 10, 2007 Speedy:open on that PC (on which you installed the driver)odbcad32 (start --> run)there you have the "drivers" tabpage.on that page you'll see the mysql Driver.in that tabpage, you'll see name, version, companyname, and filename.that's the file you're looking for on the computers..have a nice day,ok thx
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now