Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6166197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:17:49+00:00 2026-05-23T22:17:49+00:00

I am thinking of the client PC here. When someone comes to run my

  • 0

I am thinking of the client PC here. When someone comes to run my app, they may not have the MySql Connector/ODBC installed.

Now, I could just try to connect the information scheme (or mysql) database (which is preferable?) – but, if that fails, it might only mean that the database server is down. I could ping it, but it might be up and the MySql process not currently running.

I guess I could just install the connector anyway, even though it sounds sloppy, but not if doing so is going to noticably slow my app’s start-up time.

What is the best approach?

When I do install, how do I do that from Delphi, given that the connector will be available on the d/b server, who’s IP address is know?

Or … at the moment my app is a simple .EXE, with no installer. Should I create an install which also installs the ODBC connector? (if so, can anyone recommend a good freeware install builder (with no adware or toolbar installs)?

I hope that this is clear. Please ask me if not.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:17:49+00:00Added an answer on May 23, 2026 at 10:17 pm

    To check the ODB drivers installed you must check this windows registry key

    HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers
    

    from there you can easily write a delphi function to detect if the MySQL ODBC driver is installed

    {$APPTYPE CONSOLE}
    
    uses
      Windows,
      Classes,
      Registry,
      SysUtils;
    
    function ODBC_DriverInstalled(const DriverName:string) : Boolean;
    Var
      Reg      : TRegistry;
      Providers: TStrings;
      i        : Integer;
    begin
      Reg:=TRegistry.Create;
      Result:=False;
      try
         Reg.RootKey:=HKEY_LOCAL_MACHINE;
         if Reg.OpenKeyReadOnly('SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers') then
         begin
            Providers:=TStringList.Create;
            try
               Reg.GetValueNames(Providers);
               for i := 0 to Providers.Count-1 do
                begin
                   if CompareText(DriverName,Providers[i])=0 then
                   begin
                     Result:=True;
                     Break;
                   end;
                end;
            finally
               Providers.Free;
            end;
         end;
      finally
         Reg.Free;
      end;
    end;
    
    
    
    begin
      try
       Writeln(ODBC_DriverInstalled('MySQL ODBC 5.1 Driver'));
      except
        on E: Exception do
          Writeln(E.ClassName, ': ', E.Message);
      end;
      Readln;
    end.
    

    To install you have several options one can be use inno setup (which can read the windows registry as well to check for the odbc driver) and then install the driver included inside of your setup file. also you can donwload the driver directly from your app using a simple HTTP GET passing one the download address located here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app here I made for a client, but sometimes he doesn't
Here's my use case. I have a desktop app that can download from my
So here is the situation - I have a store app that I want
I saw some other similar questions on this topic here but they were not
I could not sleep last night and started thinking about std::swap . Here is
I am not very familiar with publish feature.But here is the scenario I have
Here is the situation.... I have a iframe, which is located to my client
Here's the situation: I have a client who's issued me an XML schema, and
I am thinking about going into .net framework client profile, but currently I am
I am thinking of creating a multi-platform portable C++ server-client application. Is it even

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.