Jump to content

MySQL Connector/ODBC 3.51 - already installed?


Recommended Posts

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

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...