<< Click to Display Table of Contents >> RayPack > 7.3 u6 > User Guide > PackDesigner > MSI / MST / RPP Based Projects > Advanced Mode > User Interface > Editing the Properties of a Control Conditions |
Conditions are used to change the visibility or enabled state of a control on runtime.
The Properties dialog lets you define the combination of an condition and action.
•Condition
A condition using the Installer syntax.
•Action
One of the five values:
▪Show - makes the control visible when the condition is true
▪Hide- makes the control invisible when the condition is true
▪Enable- makes the control enabled when the condition is true
▪Disable- makes the control disabled when the condition is true
▪Default- makes the control default on the current dialog when the condition is true
To add a new condition, click on the Add... button. A new row will be added automatically.
To edit an existing condition, focus the cell to be edited and press F2 or click it for a second time using the left mouse button. RayPack will display a combo box editor if the set of allowed values could be determined. The value can be also typed manually. Some fields are additionally validated by RayPack. For example, RayPack prevents entering an empty string into the Condition column to preserve internal MSI consistency. Any validation errors are shown inline. If you want to cancel editing and restore the previous value, press ESC while the validation error is being shown in the cell.
Note: Due to the Windows Installer limitations, some combinations of values may produce same MSI Primary Keys. When the changes are saved (by pressing either OK or APPLY button) RayPack will merge the condition definition and ensure that they do not break the internal consistency of the package. |
To delete an existing condition, focus the row belonging to the condition, and press the button Remove selected.