Predefined Constants

A predefined constant is an identifier reserved by InstallScript to represent a specific literal value. InstallScript uses predefined constants to represent certain data values that are passed to and returned by built-in functions. By using these predefined constants rather than literal values, you can improve the readability of your setup scripts.

You cannot change the value InstallShield assigns to a predefined constant. However, you can determine the value of a predefined constant by calling SprintfBox, as shown in the example below, which displays the value of the predefined constant FEATURE_FIELD_SELECTED:

SprintfBox (INFORMATION, "", "%d", FEATURE_FIELD_SELECTED);

Although you can use a literal value in place of a predefined constant, it is strongly recommended that you use predefined constants wherever indicated for a function.

Following is a list of the predefined constants used by InstallScript.