Error occurred while registering the file...

Posted on 2001-07-11
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?
Question by:EYoung
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
LVL 20

Expert Comment

ID: 6274982

Accepted Solution

Dave_Greene earned 50 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...


Author Comment

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?
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 6275158
Dep files for anything else CR?

Expert Comment

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


Expert Comment

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

These files are actually executables


Author Comment

ID: 6275278
Thanks to all for the help.

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

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

735 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