Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Error occurred while registering the file...

Posted on 2001-07-11
7
Medium Priority
?
835 Views
Last Modified: 2012-05-04
Basics:  VB6 sp5

I have created the distribution CAB file for my app.  When I try to install it onto one of the user's PCs, I get the following error:

"An error occurred while registering the file 'C:\WINNT\system32\MSCAL.ocx'"

The same error occurs for the files: craxdui.dll and crviewer.dll which are both Crystal Reports dll's.  I can successfully install it onto other computers without problems.

I have tried registering the three files manually using regsvr32.exe but I get the following error each time:

"DllRegisterServer C:\WINNT\System32\MSCAL.ocx Failed.  Return Code was 0x80004002"

I am creating the distribution package on a W/2000 machine and trying to install it onto a W/NT machine.  I would not think that would be a problem.

Any ideas?
0
Comment
Question by:EYoung
[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
  • 2
  • +1
7 Comments
 
LVL 20

Expert Comment

by:hes
ID: 6274982
0
 
LVL 8

Accepted Solution

by:
Dave_Greene earned 200 total points
ID: 6275072
I would look for any and all *.dep files on your development machine.  If they have the same name as a DLL you use in your project, open the dep file in notepad, and manually add the files listed into you setup.  If you don't find any .dep files let me know...

-D
0
 
LVL 7

Author Comment

by:EYoung
ID: 6275148
hes - I read your suggestion and it only applies to files that are not found - which is not the error I am getting.

Dave - All three files (mscal.dll, craxdui.dll and crviewer.dll) are included in the setup.lst, they are included in the distribution file (.cab) and are on the user's PC.

Additionally, the setup.lst shows all three with ",$(DLLSelfRegister)," which is correct.  Any other ideas?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 8

Expert Comment

by:Dave_Greene
ID: 6275158
Dep files for anything else CR?
0
 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6275177
The error you are getting is

No such interface supported

This means there is no DLLRegisterServer entry point in the OCX or the DLL.
So it cannot be registered with RegSvr32.exe

Had a look at the link above and you should follow this for each dll or OCX.

If you check out the OCX and DLLs you will notice that there are no exported functions in any of these DLLs

Hope that clears it up

Vin.
 
0
 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6275189
Try adding the files to your CAB file without any registration.

These files are actually executables

Vin.
0
 
LVL 7

Author Comment

by:EYoung
ID: 6275278
Thanks to all for the help.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

722 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