How can I access the value of a command-line parameter during initialisation?

Answered

Comments

1 comment

  • Avatar
    juanjo

    The installationType is just considered later in the installation. The only drawback I can see in moving the code is that the language selection dialog is displayed after the initializationActionList so your checks would be executed after that.

    Another possible solution without having to move the code would be to just do the checks but do not abort, just define a: "checks_failed" boolean variable (or a variable containing a list of errors) and in the preInstallationActionlist, just include:

    <preInstallationActionList>
       <throwError text="The machine did not pass the validations">
            <ruleList>
               <isFalse value="${force}"/>
               <isTrue value="${checks_failed}"/>
            </ruleList>
       </throwError>
    </preInstallationActionList>
    

Please sign in to leave a comment.