Using One Project to Create Installations for Multiple Product Configurations

InstallShield 2022

Project:This information applies to InstallScript projects.

You may want to release your product with more than one configuration—for example, an evaluation release and a full release. Within a single project, you can build releases containing different subsets of the project’s features; with a single installation script using preprocessor directives, you can build releases with different run-time behaviors.

To determine a release’s included features at build time:

1. Launch the Release Wizard and navigate to the Features panel.
2. Select the Specify the features to be included below option.
3. In the Features explorer, select the check boxes of the features that you want to include in the product configuration, and clear the check boxes of the features that you do not want to include.
4. Complete the other panels in the Release Wizard.

To determine a release’s run-time behavior using preprocessor directives:

1. In your script, use preprocessor directives to execute different code for different product configurations; for example:

#ifdef EVAL_RELEASE

    /* Evaluation-specific code */

#elif FULL_RELEASE

    /* Full release-specific code */

#endif

2. In the Compiler Preprocessor Defines box (on the General Options panel of the Release Wizard) or the Compiler Preprocessor Defines setting (on the Build tab in the Releases view), specify the preprocessor constant that corresponds to the code that you want the release to execute.
3. Build the release.