Solved

Error registering msado25.tlb during setup

Posted on 2001-06-15
5
314 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
  • 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 69

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 69

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now