check prerequisite that depends on bundled JRE

Comments

5 comments

  • Avatar
    michiel

    Hi Chris, 

    Can you tell me which checks the Java program executes? InstallBuilder has built in variables like machine_cpu_count, machine_cpu_speed, machine_total_memory, and more, that you could use to perform checks using the installer itself. 

    Regards,

    Michiel

     

     

    0
    Comment actions Permalink
  • Avatar
    Chris

    Hey Michiel,

    Our check is pretty esoteric. On Linux, we verify that the host has sufficient entropy bandwidth to meet our cryptographic requirements. Thanks,

    Chris

    0
    Comment actions Permalink
  • Avatar
    michiel

    Hi Chris, 

    Is it possible have your application to only run the check? In that case you could use <unpackDirectory> to unpack the Java component in the <preInstallationActionList>. After unpacking you could run your application using <runProgram> with the check option enabled. In that way the check is performed before starting the actual installation. 

    Regards,

    Michiel

    0
    Comment actions Permalink
  • Avatar
    Chris

    I understand that pre-install actions are executed before the first installer page is displayed. That means we won't yet know the user's intended installation directory, so we're temporarily installing a JRE exclusively for the purpose of running our check program. Whether the check succeeds or fails, we'll need to remove the temporary JRE we just installed. If the check succeeds, we'll have to re-install the JRE again once the user specifies their installation directory.

    So my next step is probably measuring how long the JRE install takes. And that makes me wonder: is it possible to emit progress/status in text mode on Linux from a pre-install action?

    0
    Comment actions Permalink
  • Avatar
    michiel

    HI Chris,

    You could use the <showProgressDialog> action which in text mode shows a spinning animation. 

     <showProgressDialog>
     <progressText>Running check, please wait</progressText>
     <actionList>

      <!-- your actions here -->


     </actionList>
    </showProgressDialog>

    Best regards,

    Michiel

    0
    Comment actions Permalink

Please sign in to leave a comment.