Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

IzPack can execute Java classes provided by third party developers.  

This can be useful used to extend IzPack's functionality in a number of ways

...

Code Block
languagehtml/xml
titleinstall.xml file
<installation>
   ...

  <resources>
    <res id="ProcessPanel.Spec.xml" src="installer/ProcessPanel.Spec.xml"/>
    ...
  </resources>

  ...
</installation>


 

b.  Reference your JAR

In At the top level of the install.xml file's top level, add a reference the to your JAR file containing your the class.

This is partially documented at:
http://izpack.org/documentation/installation-files.html#the-jar-merging-element-jar

...

Code Block
languagehtml/xml
titleinstall.xml file
<installation>

  <resources>
    <res id="ProcessPanel.Spec.xml" src="installer/ProcessPanel.Spec.xml"/>
  </resources>


  ...

  <jar src="path/to/hello.jar" stage="install"/>

  ....

</installation>

A good place to put this is near Adding the jar element inear the <resources> definition is a good idea.

c.  Use a ProcessPanel to execute your Java class

...