Answer
Each feature in your installation is a distinct part of your application's functionality. For example, a feature can install a spell checker or sample files for your application. Each installation has an installation level, an integer from 1 to 32,767, stored in the INSTALLLEVEL property. In an installation created with a Wise Solutions product, the default value for INSTALLLEVEL is 3. Each feature's installation level is stored in the Feature Table.
The default value for a feature's install level depends on the option selected from the Level drop-down list on the Feature Details dialog. To open the Feature Details dialog, open the Features page in Installation Expert and double-click the appropriate feature. The install level associated with the option displays in the Custom Value field. The following options are available:
If you include the Select Feature dialog or a custom dialog that contains the Selection Tree control to your installation, the user can override any values you set by selecting the features they want to install. However, the default options are based on the install level value you specify for the feature.
In addition to setting the defaults for a feature by selecting the appropriate option in the Feature Details dialog, you can conditionally set the default value the user sees. To do this, populate the Condition table. In the Condition table, you can modify the selection state of a feature based on a conditional expression.
Warning: Editing table data is not recommended unless you are an experienced Windows Installer developer with a clear understanding of Windows Installer database technology. Deleting, adding, or editing raw table data using this interface might result in unexpected, undesirable results, including damage to your installation. Altiris/Wise provides access to this information for its advanced users, but cannot provide answers for questions related to the Windows Installer database that do not specifically involve a Altiris/Wise application itself. Therefore, technical support for direct table editing is not available.
The Condition table contains three columns: Feature_, Level, and Condition.
Any conditional statement, such as a test for a specific property setting, can serve as a basis to the value set in the Level column. The following example describes how to setup a condition that will enable a specific feature to display during installation on the operating system if it is XP and not to display if it is not an XP machine.
To set an install level based on an operating system you need to create a feature and add in conditions.
Create Features in the project:
Create a condition that will install a feature based on detecting an XP operating system:
Feature_ |
Level |
Condition |
Feature_2 |
|
VersionNT=501 |
Feature_1 |
0 |
VerstionNT<>501 |
1. From Setup Editor >>Dialogs go to the Dialog where the user enters the information that will determine which feature gets installed.
2. Double click on the button that moves the installation to the Next action (Next or Enter...)
3. Select the Events tab, and Add an new event.
4. For the Action add DoAction, For the Argument enter CostFinalize
For the Condition enter 1.