Avoid parameters request in linux and demand on windwos

Comments

1 comment

  • Avatar
    wojciechka

    The rules for a parameter are not evaluated in unattended mode.

    It is possible to validate the value in <validationActionList> for the field or group:

    <validationActionList> <throwError> <text>You need to specify a value</text> <ruleList> <compareTextLength> <length>0</length> <logic>equals</logic> <text>${parameter_name}</text> </compareTextLength> </ruleList> </throwError> </validationActionList>

    Also, you should add an additional check in <preInstallationActionList> or <readyToInstallActionList> to handle unattended mode:

    <throwError> <text>No value specified for --parameter_name</text> <ruleList> <compareTextLength> <length>0</length> <logic>equals</logic> <text>${parameter_name}</text> </compareTextLength> <platformTest> <type>windows</type> </platformTest> </ruleList> </throwError>

Please sign in to leave a comment.