DOCUMENT:Q208699 09-APR-2002 [vbwin] TITLE :BUG: Error "$(DllSelfRegisterEx) Could Not Be Registered" PRODUCT :Microsoft Visual Basic for Windows PROD/VER::5.0,5.5,6.0 OPER/SYS: KEYWORDS:kbwizard kbtophit kbAppSetup kbVBp500 kbVBp600 kbOSWin95 kbOSWin98 kbGrpDSVB kbDSupport ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Internet Explorer (Programming) version 5.5 - Microsoft Visual Basic Learning Edition for Windows, versions 5.0, 6.0 - Microsoft Visual Basic Professional Edition for Windows, versions 5.0, 6.0 - Microsoft Visual Basic Enterprise Edition for Windows, versions 5.0, 6.0 ------------------------------------------------------------------------------- SYMPTOMS ======== When you run a Setup program created with the Visual Basic 5.0 Application Setup Wizard, the following error message appears: The file '\$(DLLSelfRegisterEx)' could not be registered because it was not found. where is the path of the Windows\System or Winnt\System32 folder. When you run a Setup program created with the Visual Basic 6.0 Package and Deployment Wizard (PDW), the following error message appears: The file '\Msftqws.pdw\$(DllSelfRegisterEx)' could not be registered because it was not found. where is the Windows\Temp folder on Windows 95, Windows 98, and Windows Me or the path to the folder specified by the TEMP environment variable on Windows NT or Windows 2000. CAUSE ===== This problem occurs when distributing the Microsoft Calendar control (MSCal.ocx). The "Register=" line in the dependency file (MSCal.dep) is incorrectly set to $(DLLSelfRegisterEx). RESOLUTION ========== To fix the problem, do the following: 1. Open the Setup.lst file in a text editor, such as Notepad. Setup.lst is one of the files created for your application setup by the Setup Wizard or PDW. 2. Find $(DLLSelfRegisterEx). You should see $(DLLSelfRegisterEx) highlighted in the entry for MSCal.ocx. 3. Change $(DLLSelfRegisterEx) to $(DLLSelfRegister). 4. Save your changes and close Notepad. 5. Run the application Setup.exe. To fix the problem for all setup.exes created with the Setup Wizard and PDW, follow these steps: 1. Open the MSCal.dep file in a text editor, such as Notepad. You should find MSCal.dep in the same folder as MSCal.ocx, which is normally located in the Windows\System folder on Windows Windows 95, Windows 98, or Windows Me and the Winnt\System32 folder on Windows NT or Windows 2000. 2. Find $(DLLSelfRegisterEx). You should see $(DLLSelfRegisterEx) highlighted in the entry for "Register=". 3. Change $(DLLSelfRegisterEx) to $(DLLSelfRegister). 4. Save your changes and close Notepad. 5. Run the Setup Wizard or PDW to create a new setup. NOTE: Do not use an existing template in the Setup Wizard or an existing packaging script in the PDW. STATUS ====== MORE INFORMATION ================ In addition to updating the "Register=" setting in MSCal.dep, you might also need to update the "Version=" setting. For more information, please see the following article in the Microsoft Knowledge Base: Q197123 PRB: Out-Of-Date Dependency Information for MSCal.ocx The Microsoft Calendar control does not ship with Visual Basic. The control ships with Microsoft Access 97 and Visual Studio 6.0. You can download the control for no charge from the following Web page: http://www.microsoft.com/officedev/tips/regactx.htm Microsoft Access 97 ships with MSCal.ocx version 8.0.0.3432, which is only redistributable if you own a copy of Microsoft Office 97 Developer Edition. For more information, please see the following article in the Microsoft Knowledge Base: Q170692 ADT/ODE: Can't Redistribute Calendar Control Without ODE License Additional query words: DLLSelfRegisterEx DLLSelfRegister msftqws ====================================================================== Keywords : kbwizard kbtophit kbAppSetup kbVBp500 kbVBp600 kbOSWin95 kbOSWin98 kbGrpDSVB kbDSupport kbie550 kbOSWinME Technology : kbVBSearch kbIEsearch kbAudDeveloper kbZNotKeyword6 kbSDKIESearch kbZNotKeyword kbZNotKeyword2 kbVB500Search kbVB600Search kbVB500 kbVB600 kbSDKIE550 Version : :5.0,5.5,6.0 Issue type : kbbug Solution Type : kbnofix ============================================================================= 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 2002.