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



1 comment

  • Avatar

    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:

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

Please sign in to leave a comment.