Microsoft KB Archive/208699

= BUG: Error "$(DllSelfRegisterEx) Could Not Be Registered" =

PSS ID Number: 208699

Article Last Modified on 5/7/2003

-

The information in this article applies to:


 * Microsoft Internet Explorer (Programming) 5.5
 * Microsoft Visual Basic Learning Edition for Windows 5.0
 * Microsoft Visual Basic Learning Edition for Windows 6.0
 * Microsoft Visual Basic Professional Edition for Windows 5.0
 * Microsoft Visual Basic Professional Edition for Windows 6.0
 * Microsoft Visual Basic Enterprise Edition for Windows 5.0
 * Microsoft Visual Basic Enterprise Edition for Windows 6.0

-



This article was previously published under Q208699



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:

197123 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

Additional query words: DLLSelfRegisterEx DLLSelfRegister msftqws

Keywords: kbAppSetup kbbug kbnofix kbtophit kbwizard KB208699

Technology: kbAudDeveloper kbIEsearch kbSDKIE550 kbSDKIESearch kbVB500 kbVB500Search kbVB600 kbVB600Search kbVBSearch kbZNotKeyword kbZNotKeyword2 kbZNotKeyword6

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2003 Microsoft Corporation. All rights reserved.