Microsoft KB Archive/249808

From BetaArchive Wiki
Knowledge Base


How To Install a COM+ Component Whose DLL Should Not Be Part of the Exported Application

Article ID: 249808

Article Last Modified on 12/5/2007



APPLIES TO

  • Microsoft COM+ 1.0
  • Microsoft COM+ 1.5



This article was previously published under Q249808

SUMMARY

This article describes how to install a COM+ component whose dynamic-link library (DLL) should not be in the export directory when the application is exported.

An example of when you might use this technique is when the DLL is a system DLL, which should not be uninstalled when the application is uninstalled (for example, a Windows Scripting Component).

MORE INFORMATION

Follow these steps to install a COM+ component whose dynamic-link library (DLL) should not be in the export directory when the application is exported:

  1. Register the component.
  2. Generate the Type Library for the component.
  3. Create the COM+ application in the COM+ Explorer.
  4. Drag and drop the generated Type Library in step 2 to the COM+ application in the COM+ Explorer.
  5. In the registry, insert implemented categories under CLSID\{GUID} as follows:

    [HKEY_CLASSES_ROOT\CLSID\{<Component CLSID>}\Implemented 
    Categories\{87D49532-B7b6-11d0-8d1e-00c04fc2e0c7}]
    @=""
                        


Keywords: kbhowto kbsysadmin KB249808