Solved

Error registering msado25.tlb during setup

Posted on 2001-06-15
5
328 Views
Last Modified: 2007-12-19
I have an application that uses a database.  I used the packaging add-in of VB6 to create the setup files.  When I run the setup program I receive an error message stating, "an error occurred registering msado25.tlb" and the same message for msadox.dll.  

The program goes on to work correctly anyway (probably because ADO is already installed on the machine). I have tried installing these files in different locations (AppPath, WinSysDir, etc.) but it doesn't seem to matter.

Any ideas?
0
Comment
Question by:CorporateRobot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
agriggs earned 50 total points
ID: 6197295
I believe this is a bug in PDW.  Instead of including msado25.tlb with your setup file, you need to remove it and include mdac_typ.exe.  This should ensure that the setup works on machines that don't already have ADO installed.

A TLB file is only useful for browsing the characteristics of a library from a program like Visual Basic.  This functionality is not needed on your client machine.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6198448
Find vb6dep.ini on your harddrive. Open it in an editor (maybe Notepad!!!). Find
the section named "MSADO20.TLB" or ("MSADO21.TLB"). Copy these 6 lines just under and rename MSADO20.TLB to MSADO25.TLB.
0
 
LVL 1

Author Comment

by:CorporateRobot
ID: 6203753
That worked, thanks very much. . .
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6204687
You should have accept my comment if this was the one that worked!!! agriggs explained what a TLB is but not how to fix your problem.
0
 
LVL 1

Author Comment

by:CorporateRobot
ID: 6206341
emoreau, I'm sorry you feel that way.  The advice that agriggs gave to me that worked was that I only needed the mdac_typ.exe file -- not the two msado files.  I was including all of them because I didn't know what I was doing.  When I deselected the the two msado files in the Package and Deployment Wizard, it worked without error messages.  It is true that he also explained what a TLB file is (although I am still not sure what a TLB is!?), however, it was irrelevant in solving the problem.  

I don't mean to upset anyone.  I have read good advice that you have provided on many posts.  You are obviously a top expert in the VB category (over 180,000 expert points!!)  However, in this particular case, agriggs' advice was what helped me.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question