Constraints between Selections and Installations

Sometimes it is necessary to specify that a certain option cannot be selected if some other option is installed, or that a certain option cannot be selected if some other option is not installed. For example, a user should not be able to select tabloid paper if a printer's large format paper tray is not installed.

To specify relationships between the selection of certain options with the installation state of other options, use *InstalledConstraints and *NotInstalledConstraints entries. Their format is:

*InstalledConstraints : FeatureName . OptionName

*NotInstalledConstraints : FeatureName . OptionName

 

where FeatureName is the name of a feature and OptionName is the name of an option associated with the feature. If the argument is a feature, the period and OptionName are not included.

An *InstalledConstraints or *NotInstalledConstraints entry must be placed inside a *Feature or *Option entry. For example, to indicate that a user should not be able to select tabloid paper if a printer's large format paper tray is not installed, the following entries can be used:


*Feature: InputBin
{
    *Option: LARGEFMT
    {
        Installable?: TRUE
        NotInstalledConstraints: PaperSize.TABLOID
    }
}

If a feature or option includes an *InstalledConstraints or *NotInstalledConstraints entry, the feature or option's *Installable? attribute must be set to TRUE.

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft