User Guide
375
Package Validation
2. 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.
3. 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.
4. Click Add to the right of the Validation Rules list and select DLL Rule, EXE Rule, or
VBScript Rule.
A details dialog appears.
5. Enter a unique name and description to identify this rule when it appears in the
Validation Rules list.
6. If the custom action file is in the File drop-down list, select it.
The files listed are those contained in the validation module you are editing.
7. If the custom action file is not in the File drop-down list, do one of the following:
• For .DLL and .EXE files, click New and specify the .DLL or .EXE file.
• For a VBScript file, click Options, select New, and specify the VBScript file. To
edit the VBScript, click Options, select Edit, and modify the VBScript in the Macro
Editor.
8. (.DLL and VBScript only.) If the Function field appears, enter the name of the
function in the .DLL or VBScript that performs the validation.
9. (.EXE only.) If the Parameters field appears, enter any command line options that
are needed to run the .EXE.
10. Click OK
The OK button is disabled if required fields are missing.
The Customized Validation Rules dialog reappears, and the new rule is displayed at
the end of the Validation Rules list with its checkbox marked.
11. To add more rules to this validation module, either repeat this procedure or see
Adding a Validation Rule Set on page 376.
The customizations remain in effect until you change them.
Also see:
About Rules That Call a Custom Action
About Validation Rule Sets
About Validation Rule Sets
" Enterprise Edition only.
You can add a rule set to a new or existing validation module. A rule set consists of a
series of conditions to check in a package and actions to take if the conditions are met.
You create rules sets with the Validation Rules wizard.