Comments

1 comment

  • Avatar
    Jake

    There are currently two ways to control whether a given parameter will be shown to the user or not:

    -Setting the <ask> property to false: You can define it directly inside the parameter, or also you can configure it using a <setInstallerVariable> action, like you can do with any other parameter property. For instance:

    <setInstallerVariable name="parameter(name-of-the-parameter).ask" value="0">
      <ruleList>
        <!-- Here you can specify the rules that must be satisfied in order for the ask property to be set to zero -->
      </ruleList>
    </setInstallerVariable>
    

    -Setting a <ruleList> inside the parameter. The parameter will be shown to the user only in case the conditions inside the <ruleList> are met. It would look like the following (in our example we are using a <booleanParameter>):

    <booleanParameter>
       <name>someName</name>
       <description>Some description</description>
       <explanation>Some Explanation</explanation>
       <default>1</default>
       <!-- More parameter properties can go here -->
       <ruleList>
         <!-- Here you can specify the rules that must be satisfied in order for the parameter to be shown -->
       </ruleList>
    </booleanParameter>
    

    Another property that can also affect the display of a parameter is the <cliOptionShow> property. Setting it to zero will avoid this parameter to be shown on the help summary, that you can obtain by invoking the installer and passing to it the "--help" option. Please note that this will not prevent to effectively configure the parameter from the command line or an option file, it will just not show the parameter information to the user.

Please sign in to leave a comment.