Adding an Operating System Condition for an InstallShield Prerequisite

InstallShield 2019

If the InstallShield prerequisite should be installed on some—but not all—operating systems, you can create multiple operating system conditions for the prerequisite. If a target machine meets any one individual operating system condition, it meets the operating for that prerequisite.

To add a new operating system requirement for an InstallShield prerequisite:

1. In the InstallShield Prerequisite Editor, open the prerequisite that you want to modify.
2. Click the Conditions tab.
3. Click the Add button. The Prerequisite Condition dialog box opens.
4. Select the Setup is running on a specified platform option.
5. Do one of the following:
In the Select which platform the prerequisite should be run on box, select the operating system that is required on the target system for the prerequisite.
In the Select which platform the prerequisite should be run on box, select Custom. Then configure the operating system settings as appropriate.

Tip • You can also use the values from an existing predefined operating system condition as the basis for a new custom condition. To do so: In the Select which platform the prerequisite should be run on box, select the appropriate predefined operating system, and then change the setting to Custom. Then you can further configure the operating system condition by specifying additional values in the Custom area.

6. To specify a range of service pack numbers for which this prerequisite condition is true, use the Service Packs boxes. For example, if target system must have service pack 2, 3, or 4, enter 2 in the first box and 4 in the second box. To target all future service packs, leave the second box blank. To target only service pack 3, enter 3 in both boxes.
7. Click OK.

The InstallShield Prerequisite Editor adds the operating system condition to the Conditions tab.

Note • Instead of storing in the .prq file the value that you selected in the Select which platform the prerequisite should be run on box, the InstallShield Prerequisite Editor stores the underlying operating system settings that are associated with the value that you selected. Therefore, if you select the Custom option but do not change or configure any settings in the Custom area, the InstallShield Prerequisite Editor does not set the value of this box to Custom the next time that you reopen the Prerequisite Condition dialog box for the selected condition. Instead, it sets the value of the box to the predefined operating system option.

See Also