DOCUMENT:Q190176 07-AUG-1998 [vbwin] TITLE :BUG: Visual Basic Setup Does Not Re-register System Files PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:6.0 OPER/SYS:WINDOWS KEYWORDS: ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 6.0 --------------------------------------------------------------------- SYMPTOMS ======== When you start Microsoft Visual Basic and load an existing project using any controls, you get the following error: Class not registered If you re-install Visual Basic and run the same project again, the same error occurs. CAUSE ===== Visual Basic does not re-register the following files when you re-install it: COMCAT.DLL STDOLE2.TLB OLEPRO32.DLL OLEAUT32.DLL MSVBVM60.DLL RESOLUTION ========== You can manually register each of the above system files by using the Microsoft Register Server utility (regsvr32.exe). The syntax for using Regsvr32.exe is as follows: Regsvr32 [/u] [/s] where: - /u - Unregisters the file based on the argument. - /s - Registers the file in silent mode, suppressing all messages. - - The complete path and file to be registered/unregistered. You can obtain Regsvr32.exe from your Visual Basic CD-ROM under the os\system directory, which can be copied to the windows\system directory for future use. To register the files, select Run from the Start menu, and, in the Open box, type: \regsvr32 \system\ For example, assuming the windows directory is c:\windows, type the following in the Open box to register comcat.dll: c:\windows\system\regsvr32 c:\windows\system\comcat.dll STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. Additional query words: kbDSupport kbVBp600bug kbAppSetUp kbRegistry ====================================================================== Version : WINDOWS:6.0 Platform : WINDOWS Issue type : kbbug ============================================================================= 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 1998.