Jump to content
Sign in to follow this  
speedy6

MySQL Connector/ODBC 3.51 - already installed?

Recommended Posts

speedy6

Anyone know how to check if MySQL Connector/ODBC already is installed?... it doesn't have a dir in program files....

thx

Share this post


Link to post
Share on other sites
Proph

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. :)

Share this post


Link to post
Share on other sites
speedy6

Are you sure is that for > MySQL Connector/ODBC 3.51 , because, i've installed it, and he said NO, so...

Share this post


Link to post
Share on other sites
lordofthestrings

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,


Share this post


Link to post
Share on other sites
speedy6

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×