DOCUMENT:Q161897 30-JUL-1999 [foxpro] TITLE :FIX: Uninstalling Distributed Setup Removes OCX Licenses PRODUCT :Microsoft FoxPro PROD/VER:5.0 OPER/SYS: KEYWORDS:kbenv kbActiveX kbvfp kbvfp500aFIX kbvfp500bugkbbuglist kbfixlist ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, version 5.0 ------------------------------------------------------------------------------- SYMPTOMS ======== Uninstalling a distributed .exe file by running setup from disk 1 or a network share and choosing "Remove All," removes the licenses for ActiveX Controls that were installed as part of your application. Since the licenses for ActiveX controls were removed, any other application that used the controls is no longer able to create an instance of the control. They get the following error when they try using an ActiveX control: Appropriate license is not found. CAUSE ===== The license key in the registry was removed by the setup program when the user did a "Remove All." A license key may affect more than one OCX. As an example, all of the Microsoft ActiveX controls that shipped with Visual FoxPro use a single license key in the registry. Therefore, if that license key is removed, ActiveX Controls from other venders may still work but ActiveX Controls from Microsoft will not. RESOLUTION ========== Reinstall the application. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Create a test folder. 2. Copy the Mscomm32.ocx to the test folder. 3. Create a Test.txt file in the test folder. (The setup program needs a file to install.) 4. Run the Setup Wizard on the test folder. In step 3, choose Netsetup. In step 6, make sure the ActiveX check box in the list of files is checked for the Mscomm32.ocx. 5. After the Setup Wizard is finished, run the Setup.exe it created to install the test application 6. After the Setup.exe finishes, run it again to get the Maintenance Setup. Choose the "Remove All" option. 7. After the Setup.exe finishes, start Visual FoxPro and create a new form. 8. Add an OLE Container to the form. 9. Pick Insert Control from the Insert Object dialog box. 10. Pick the ImageList Control from the Control Type list. Additional query words: 0X80040112 ====================================================================== Keywords : kbenv kbActiveX kbvfp kbvfp500aFIX kbvfp500bug kbbuglist kbfixlist Technology : kbVFPsearch kbAudDeveloper kbVFP500 Version : 5.0 Issue type : kbbug Solution Type : kbfix ============================================================================= 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 1999.