I need to unpack a temporary JRE. Can I do this while the splash screen is displayed?

asked 21 Mar '12, 10:54

wildcatz's gravatar image

wildcatz
16141417
accept rate: 0%


It is possible to unpack certain directory or file before installation. This can be done using <unpackFile> or <unpackDirectory> actions. For example:

<deleteFile>
  <path>${system_temp_directory}/jre</path>
</deleteFile>
<createDirectory>
  <path>${system_temp_directory}/jre</path>
</createDirectory>
<unpackDirectory>
  <component>java</component>
  <folder>jre</folder>
  <origin>jre</origin>
  <destination>${system_temp_directory}/jre</destination>
</unpackDirectory>

This will unpack directory jre from folder jre in component java to system temporary directory. You can then use <runProgram> or any other action to run Java applications with this JRE.

Accessing files from installer is described in more details in Unpacking Before Installation Time section of InstallBuilder UserGuide.

You can run the actions in Initialization Actions (<initializationActionList>) - when the installer has started, just before the parsing of the command line options. It is also possible to run the actions Pre-installation Actions (<preInstallationActionList>) that are run before the first page of the installer is displayed, right after the parsing of the command line options takes place.

It is documented in more details in Action Lists section of InstallBuilder UserGuide.

While it is not possible to show the splash screen for the duration of unpacking and running the scripts, you can use <showProgressDialog> action to show a dialog while unpacking and running Java. For example:

<showProgressDialog>
  <title>Extracting Java and checking pre-requisites</title>
  <actionList>
    <deleteFile>
      <path>${system_temp_directory}/jre</path>
    </deleteFile>
    <createDirectory>
      <path>${system_temp_directory}/jre</path>
    </createDirectory>
    <unpackDirectory>
      <component>java</component>
      <folder>jre</folder>
      <origin>jre</origin>
      <destination>${system_temp_directory}/jre</destination>
    </unpackDirectory>
    <!-- ... -->
  </actionList>
</showProgressDialog>

It is documented in Displaying Progress While Executing Long Running Actions section of InstallBuilder UserGuide.

link

answered 21 Mar '12, 11:16

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

It appears that the initialization actions don't start until after the splash screen. I'd like to start unpacking at the earliest possible moment, preferably when the splash screen first appears. How can I do this?

(21 Mar '12, 11:32) wildcatz

Unfortunately it is not possible to run actions before or at splash screen.

(21 Mar '12, 11:40) wojciechka ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×40
×10
×8
×6

Asked: 21 Mar '12, 10:54

Seen: 1,839 times

Last updated: 21 Mar '12, 11:40