PRB: Setup Unable to Register an .ocx File Error

Last reviewed: December 10, 1996
Article ID: Q160771
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 5.0

SYMPTOMS

When using setup disks created by the Setup Wizard to install an executable file, the set up process does not complete because the following error appears:

   <filename.ocx> was unable to register itself in the System Registry

followed by the message:

   Setup not completed successfully.

The Setup process then terminates.

CAUSE

The Setup program is unable to register the .ocx file because it is corrupted or the incorrect version.

RESOLUTION

Ensure that the .ocx file is located in the same folder as the executable file before the Setup Wizard compresses the files.

Next, check the version of the .ocx file being used with the executable file against the corresponding .ocx file located in the either the Windows\System or Windows\System32 folder. On Windows 95, the Windows\System folder contains the .ocx files that shipped with Visual FoxPro 5.0. On Windows NT 3.51 or 4.0, they reside in the Windows\System32 folder. To determine the version of an .ocx file, on Windows 95 or Windows NT 4.0, start Windows Explorer or My Computer, highlight the .ocx file, right-click (secondary click) and click Properties on the menu that appears, and press the Version tab. On Windows NT 3.51, highlight the file, and press the Alt and Enter keys.

The General tab provides information on the file size in bytes. This information is useful if you suspect file corruption. Again, compare the file being compressed with the file in the appropriate Windows\System folder.

MORE INFORMATION

The Visual FoxPro Help file provides a list of .ocx controls that shipped with Visual FoxPro 5.0. Type "Help ActiveX Controls Overview" (without quotations marks) in the Command window.

Below is a list of the .ocx controls that ship with Visual FoxPro 5.0 and their corresponding version number:

Control File Name             Version
-----------------             -------
Comctl32.ocx                  1.0.2908
Comdlg32.ocx                  1.0.2415
Dblist32.ocx                  1.0.2926
Foxhwnd.ocx                   1, 5, 0, 0
Foxtlib.ocx                   5, 0, 0, 344
Grid32.ocx                    1.0.2908
Mci32.ocx                     1.0.2815
Msacal70.ocx                  7.0
Mscomm32.ocx                  1.0.2805
Msmapi32.ocx                  1.0.2815
Msoutl32.ocx                  1.0.2922
Picclp32.ocx                  1.0.2415
Richtx32.ocx                  1.0.2922
Sysinfo.ocx                   1.0.001
Tabctl32.ocx                  4.01.0000
Threed32.ocx                  1.0.0041

REFERENCES

For more information about the ActiveX Controls Overview Help topic, please see the following article(s) in the Microsoft Knowledge Base:

   ARTICLE-ID: Q157193
   TITLE     : DOCERR: ActiveX Controls Help Topic Lists Incorrect File


KBCategory: kbsetup kbprb kberrmsg
KBSubcategory: FxsetupGeneral
Additional reference words: 5.00 VFoxWin kbdsd



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 10, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.