Solved

Some questions regarding IZPack

Posted on 2006-07-12
3
852 Views
Last Modified: 2012-08-13
Hi guys,

From the IZPack documentation:

The Packs Element <packs>
This is a crucial section as it is used to specify the files that need to be installed. The <packs> section consists of several <pack> tags.
The <pack> takes the following attributes :
    * name: the pack name
    * required: takes yes or no and specifies whether the pack is optional or not.
    * os: optional attribute that lets you make the pack targeted to a specific operating system, for instance unix, mac and so on.
    * preselected: optional attribute that lets you choose whether the pack is by default selected for installation or not. Possible values are yes and no. A pack which is not preselected needs to be explicitly selected by the user during installation to get installed.
    * loose: can be used so that the files are not located in the installer Jar. The possible values are true or false, the default beeing false. The author of this feature needed to put his application on a CD so that the users could run it directly from this media. However, he also wanted to offer them the possibility to install the software localy. Enabling this feature will make IzPack take the files on disk instead of from the installer. Please make sure that your relative files paths are correct !
    * id: this attribute is used to give a unique id to the pack to be used for internationalization.

I'm interested in using the 'loose' attribute. We have an app that uses MSDE. So I've created an installer that will install our app and then install MSDE. In my xml file I've specified this pack:

<pack name="MSDE 2000" required="no">
      <description>The MS SQL Server app</description>
      <file src="server" targetdir="$INSTALL_PATH" loose="true"/>
      <executable targetfile="$INSTALL_PATH/server/setup.exe" stage="postinstall"/>
</pack>

But this file is still compiled into the jar file. Am I doing something wrong, or did I misunderstand this?

Then the other question is how do I specify the default installation folder?
0
Comment
Question by:riaancornelius
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Author Comment

by:riaancornelius
ID: 17120023
First part was wrong. Loose should be specified for the pack, not the file. Like this:

<pack name="MSDE 2000" required="no" loose="true">
     <description>The MS SQL Server app</description>
     <file src="server" targetdir="$INSTALL_PATH"/>
     <executable targetfile="$INSTALL_PATH/server/setup.exe" stage="postinstall"/>
</pack>

And as to how you specify the default installation path:
In your resources add a resource like this:
<res id="TargetPanel.dir.windows" src="defaultPath.txt"/>

and then add a text file called "defaultPath.txt" in your installation with a single line specifying the path. like:
c:\Program Files\MyCompany\Your app name
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 17157364
Closed, 500 points refunded.
Netminder
Site Admin
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Maven Project: Hibernate Dependencies Conflict 10 49
hibernate jars 4 58
Desingning Refactoring existing code 2 31
junit example issue 2 25
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question