09.12.2012 Views

InstallShield 2012 Spring Express Edition User Guide

InstallShield 2012 Spring Express Edition User Guide

InstallShield 2012 Spring Express Edition User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 8: Organizing Files for Your Installation<br />

Registering COM Servers<br />

• The file can be self-registered if it supports self-registration. Note that self-registration is not as<br />

reliable as having Windows Installer register and unregister the file with extracted COM<br />

information.<br />

The first method listed—extracting the COM information—is the recommended method.<br />

Important: Some applications, like WinRunner, insert hook .dll files into the COM extraction engine. This causes COM<br />

extraction to fail and displays the following message: “ISRegSpy detects following module %1 hooked into this process,<br />

which causes ISRegSpy to malfunction. You need to shut the application down and restart COM extraction.” If you<br />

encounter this message, shut down the application and restart COM extraction, as the dialog box instructs.<br />

Do not select the self-registering property for .exe files that are not self-registering. To self-register an .exe file, you need<br />

to launch the .exe file with the /regserver command. However, if the .exe file does not support the command-line switch,<br />

the .exe file will be launched during extraction at build time.<br />

Task To register a COM server with <strong>InstallShield</strong>:<br />

1. In the View list under Specify Application Data, click Files.<br />

2. Right-click the file you want to register and then click Properties. The Properties dialog box<br />

opens.<br />

3. Click the COM & .NET Settings tab.<br />

4. In the Registration Type list, select the type of registration that you want to perform on the file.<br />

5. Click OK.<br />

Filtering Registry Changes for COM Extraction<br />

To prevent <strong>InstallShield</strong> from extracting undesired COM data from a COM server (either at build or<br />

design time), you can edit the Filters.xml file and specify the registry keys to be excluded. Filters.xml<br />

is in the following location:<br />

<strong>InstallShield</strong> Program Files Folder\Support<br />

The file must remain in this location after you edit it to ensure that COM extraction works properly.<br />

Tip: You can also use the Filters.xml file to control which files should be included or excluded during dependency<br />

scanning. For more information, see Filtering Files in Dependency Scanners.<br />

Excluding Registry Keys from COM Extraction<br />

The element in the Filters.xml file is where you add subelements for each of the registry<br />

keys that you want the COM extraction process to exclude. Any keys that are listed here will not be<br />

uninstalled when your product is uninstalled.<br />

By default, the element has subelements for common system registry keys that are required.<br />

196 ISE-1900-UG00 <strong>InstallShield</strong> <strong>2012</strong> <strong>Spring</strong> <strong>Express</strong> <strong>Edition</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!