PRB: Visual Basic Displays Incorrect Edition Splash Screen

Last reviewed: March 17, 1998
Article ID: Q149619
The information in this article applies to:
  • Professional and Enterprise Editions of Microsoft Visual Basic 16-bit and 32-bit, for Windows, version 4.0

SUMMARY

After installing the Professional or Enterprise Edition of Visual Basic, the Startup splash screen displays Standard Edition. Any attempt to use the Professional or Enterprise controls or features fails and shows the error message:

   License file not found.

STATUS

The LICENSES key is corrupt or is missing the Professional or Enterprise licensing information and cannot be read properly. Microsoft has confirmed this to be a problem in Microsoft Visual Basic for Windows, version 4.0.

MORE INFORMATION

Visual Basic and all custom controls store licensing information under the HKEY_CLASSES_ROOT\LICENSES key. The keys under this key correspond to components in the Visual Basic environment, third party .OCX files, and other Windows applications. If there is any damage to this key, the licensed components cannot retrieve their licensing information and fail to load properly or fail to load at all.

This problem is most prevalent on Windows 3.x machines where the registry is limited to 64K of data. Information stored beyond this 64K boundary can not be read. Many applications now use OLE and other technologies that require registration. As a result, a registry size above 64K is not uncommon. Since much of the information is usually unwanted remnants of removed or upgraded software, a periodic cleaning is recommended. This can be accomplished by using Regcln16.exe from the Visual Basic for Windows 4.0 CD-ROM.

This problem can and does occur on Windows 95 and Windows NT machines, although it is far less frequent. The registry is not limited to 64K on these platforms so the problem is usually registry corruption. Although the size of the registry is not limited, it can benefit from a periodic cleaning using Regclean.exe.

WORKAROUND

To work around this issue in Windows 3.x:

  1. Uninstall Visual Basic and delete all *.OCX and *.OCA files.

  2. Delete OC25.DLL.

  3. Rename Reg.dat and restart Windows.

  4. Reinstall Visual Basic and all other software packages that use the registry.

To work around this issue in Windows 95 and Windows NT:

  1. Using a registry editor, delete the HKEY_CLASSES_ROOT\LICENSES key.

  2. Run Regclean.exe and delete all *.OCX and *.OCA files.

  3. Delete OLEPRO32.DLL.

  4. Restart Windows and reinstall Visual Basic.

NOTE: The preceding methods are generally more successful but the method following works under 64K (Windows 3.x), and if the registry is not corrupted. This method does not interfere with any other applications.

Alternative Method

  1. Install Visual Basic.

  2. Run Regclean.exe (Windows 95 or NT) or Regcln16.exe (Windows 3.x)

  3. Delete the \LICENSES key.

  4. Launch the File Manager and select the \SETUP directory on the Visual Basic CD-ROM.

  5. Use the Extract.exe utility to find and decompress the Visual Basic registration file. To do this, in the Run dialog box (on the File menu, Run submenu), type:

          EXTRACT.EXE /A /L C:\WINDOWS\ VB4-1.CAB *.REG
    

    Press ENTER. (This assumes C:\WINDOWS\ is the Windows directory of the machine.)

  6. Use Regedit.exe to register the registration files. To do this, in the Run dialog box (on the File menu, Run submenu) type:

          REGEDIT.EXE OLE2.REG
    

    Press ENTER. Then type:

         REGEDIT.EXE VBxxx.REG
    

    Press ENTER. (This assumes xxx is PRO or ENT, depending on the version.)

  7. Reinstall third party custom controls and any software that may use the registry to store licensing information.
Keywords          : SetIns kbenv kbprb
Version           : 4.00 | 4.00
Platform          : NT WINDOWS


================================================================================


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