Posted on 2006-03-22
Last Modified: 2008-02-01
I am using Izpack for creating an installer ( . When I try to install from the jar file created by Izpack software, it shows the destinations directory by default as

C:\Program Files\Application

The user can change this but i want to show a different default directory. How to do this...
Question by:Annabelle_s
    LVL 35

    Accepted Solution

    According to the documentation for izpack;

    2.4.6 TargetPanel
        This panel allows the user to select the installation path. It can be customized with the following resources (they are text files containing the path) :

            • TargetPanel.dir.f where f stands for the family (mac, macosx, windows,unix)
            • TargetPanel.dir : the directory name, instead of the software to in-stall name
            • TargetPanel.dir.d where d is a ”dynamic” name, as returned by the JavaTM virtual machine. You should write the name in lower- case and replace the spaces with underscores. For instance, you mightwant a different setting for Solaris and GNU/Linux which are both Unix-like systems. The resources would be TargetPanel.dir.sunos, TargetPanel.dir.linux. You should have a Unix-resource in case it wouldn’t work though.
    LVL 11

    Assisted Solution


    I am not very much familier with it, but you can very well define a INSTALL_PATH in the xml configuration file for the targets.
    Search for this variable and set according to your needs.

    BTW, in my opinion, let it be taken according to the OS [default settings].


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
    INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    The viewer will learn how to implement Singleton Design Pattern in Java.

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now