Microsoft KB Archive/160593

= PRB: Setup from Setup Wizard May Install OCX in Wrong Folder =

Article ID: 160593

Article Last Modified on 10/15/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q160593



SYMPTOMS
When using the Setup program created by the Setup Wizard you may receive the following error message:

 was unable to Register itself in the System Registry



CAUSE
The .ocx files that the application needs were placed in a subdirectory of the distribution directory.



WORKAROUND
Make sure all .ocx files that your application needs are placed in the root distribution directory.



STATUS
Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
For more information on distributing applications and the Setup Wizard please see chapters 25 and 26 in the Developer's Guide.

The following Steps to Reproduce Behavior assume that you have already created an application that uses .ocx controls.

Steps to Reproduce Behavior
  Create the following Directory structure:    MyApp |    |--Controls  Place your .exe in the MyApp folder. Place the .ocxs your application uses in the Controls folder. Run the Setup Wizard.</li> Use the MyApp folder for the Distribution Tree Directory in Step 1 of the Setup Wizard.</li> On Step 6 make sure the .ocxs show WinSysDir as the TargetDir and that the OLE check box is selected.</li> When the Setup Wizard finishes installing the application on a machine that does not have Visual FoxPro or your .ocxs installed on it.</li></ol>

The Setup program installs all the files and just before it finishes trying to update the system files you get the following error message:

<control.ocx> was unable to Register itself in the System Registry

If you look at the Windows\System folder you will see a folder under it named Controls. Inside the Controls folder is the .ocx files. Setup is looking for the .ocx files in the System folder, and when it does not find them there, it can't register them.

Additional query words: vfoxwin ocx activeX kbdsd

Keywords: kbsetup kbprb KB160593

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.