Configuring COM Registration Settings Manually

Project:This information applies to the following project types:

Basic MSI
DIM
InstallScript MSI
Merge Module
MSI Database
MSM Database
Transform

Important:The recommended method for installing a COM server is to have Windows Installer register its classes, ProgIDs, and so on. Calling self-registration functions violates Setup Best Practices.

It is recommended that you avoid using the TypeLib table. For more information, see TypeLib Table in the Windows Installer Help Library.

The easiest way to populate the COM Registration advanced setting is to have the Component Wizard extract the necessary information or extract COM data for a key file. (You can also have it extracted dynamically at build time, in which case you do not need to use this advanced setting.) It is recommended that you modify the COM Registration advanced setting or create COM entries in the component’s Registry explorer only if you are familiar with the technical details behind your file’s registration.

To install a COM server solely through editing the component’s advanced settings:

1. Ensure that a single COM server is added to the component. The file must be a single portable executable file (such as an .exe, .dll, or .ocx file), according to Setup Best Practices.
2. Make the COM server the component’s key file.
3. For the component’s COM Extract at Build setting, select No.
4. Expand the component’s Advanced Settings item to view all of the advanced settings.
5. Click COM Registration to configure COM server information.

Right-click one of the items in the COM Registration explorer to modify or to create registration information for your COM server. Right-click an item and click Rename to rename the new item.

Note:The PATH system variable on the build machine must be set to include the directories of all of the .dll files to which the COM server links; otherwise, the file will fail to register and COM information will not be extracted.

Configure the settings for each registration item or subitem that you create. More help is available in the help pane in InstallShield when you click each registration setting.