Solved

Some questions regarding IZPack

Posted on 2006-07-12
3
856 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

617 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