PRB: Installation Error: API 'Create Reg Key Value' Failed

Last reviewed: April 29, 1996
Article ID: Q95671
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SYMPTOMS

When you are installing FoxPro for Windows, the installation program will check to see if Microsoft Graph is installed on the system. If it is not, the installation program will install and attempt to register it in the REG.DAT file in the Windows program directory. During this process, the following error message may appear:

   API 'Create Reg Key Value' Failed

CAUSE

There may be two REG.DAT files on the hard disk or the REG.DAT file may be corrupted.

RESOLUTION

To correct this problem, make sure you have only one REG.DAT file. If you have only one REG.DAT file and the problem still occurs, you must create a new REG.DAT file. To do so:

  1. Quit Windows.

  2. If the REG.DAT file exists in the Windows program directory, rename it "REG.OLD" (without the quotation marks).

  3. Restart Windows. In the Program Manager, choose Run from the File menu, and type "REGEDIT" (without the quotation marks) in the Command Line box.

  4. When the REGEDIT program comes up, choose Merge Registration File from the File menu.

  5. In the File Name box, select SETUP.REG from the Windows SYSTEM subdirectory. This creates a new REG.DAT file in the Windows directory.

  6. Install FoxPro.

  7. Reinstall the other entries that may have been lost from the old REG.DAT file. This process is described in the Help file for the REGEDIT program.

STATUS

This behavior is by design.


Additional reference words: FoxWin 2.50 API ERROR regkeyvalue
regkey value
registry information editor database errmsg err msg setup createregkeyvalue
KBCategory: kbsetup kbprb kberrmsg
KBSubcategory: FxsetupError


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: April 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.