DOCUMENT:Q160593 09-MAR-2000 [foxpro] TITLE :PRB: Setup from Setup Wizard May Install OCX in Wrong Folder PRODUCT :Microsoft FoxPro PROD/VER:5.00 OPER/SYS: KEYWORDS:kbsetup kbvfp500 kbvfp600 ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 5.0, 6.0 ------------------------------------------------------------------------------- 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 --------------------------- 1. Create the following Directory structure: MyApp | |--Controls 2. Place your .exe in the MyApp folder. 3. Place the .ocxs your application uses in the Controls folder. 4. Run the Setup Wizard. 5. Use the MyApp folder for the Distribution Tree Directory in Step 1 of the Setup Wizard. 6. On Step 6 make sure the .ocxs show WinSysDir as the TargetDir and that the OLE check box is selected. 7. When the Setup Wizard finishes installing the application on a machine that does not have Visual FoxPro or your .ocxs installed on it. The Setup program installs all the files and just before it finishes trying to update the system files you get the following error message: 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 kbvfp500 kbvfp600 Technology : kbVFPsearch kbAudDeveloper kbVFP500 kbVFP600 Version : 5.00 Issue type : kbprb ============================================================================= 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. Copyright Microsoft Corporation 2000.