User Guide
376
Package Validation
Note:
You cannot add rules to predefined validation modules.
Example:
Suppose you want to determine if your packages contain any version of report.dll earlier
than 2.0.0 and if so, replace it with version 2.0.0 of report.dll. The rule set you create
for this check would contain the following conditions and actions:
Select file with name report.dll
and where version is less than 2.0.0
Display text report.dll version less than 2.0.0 in View/Correct dialog
Replace file with C:\Development\DLLs\report.dll
The underlined values in the conditions and actions might be truncated on the screen.
When you include the action to display text, errors found by a custom rule set are
displayed on the View / Correct dialog. The error text is displayed with the question
mark icon ( ) and the Correct button is enabled. Click Correct to perform the actions in
the rule set.
Also see:
Customizing Validation Modules
About Rules That Call a Custom Action
Adding a Rule That Calls a Custom Action
Adding a Validation Rule Set
Note
When customizing a predefined validation module, customize a copy of the .CUB file to retain
the original file.
1. Start Package Validation as described in Validating a Package on page 370 and click
Customize on the Welcome dialog.
The Customized Validation Rules dialog appears. Validation Files lists the
predefined validation modules and any validation modules you’ve added. When you
select a validation module, its rules appear in Validation Rules.
2. In Validation Files, select a validation module to customize.
Note:
You cannot add rules to predefined validation modules.
If the validation module is not listed, see Adding a Validation Module to Package
Validation on page 372.
3. Click Add to the right of the Validation Rules list and select Rule Set.
The Validation Rules dialog appears.
4. Enter a unique rule set name and description to identify this rule set in the
Validation Rules list.
5. Click Add.
The Validation Rules wizard starts and the Name dialog appears.
6. Complete the dialog and click Next: