Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7991155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:12:56+00:00 2026-06-04T13:12:56+00:00

IzPack TargetPanel lets one select one target directory. However I need to allow users

  • 0

IzPack TargetPanel lets one select one target directory. However I need to allow users to choose two (one for apps, one for data). How to do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:12:58+00:00Added an answer on June 4, 2026 at 1:12 pm

    You can create a UserInputPanel and get the path as a variable from the user. Then you can use variable substitution anywhere you want. You’ll have to add a userInputSpec.xml file and define your own panels (as many as you want). To get a directory, use <field type="dir" ... >

    Example userInputSpec.xml from an application of mine. I include mongoDB with the installer and use this to get some settings.

    <userInput>
        <panel order="0">      
            <createForPack name="MongoDB" />
            <!-- Other settings like port, ip, username, password-->
            <field type="staticText" align="left" txt="Select the catalogue where data will be stored." id="staticText.registry.db.data.text" />
            <field type="dir" align="left" variable="mongo.data.dir">
                <spec txt="Data directory" size="25" set="$INSTALL_PATH\data" mustExist="false" create="true" />
            </field>
        </panel>    
        <panel order="1">
            <!-- definition of a second panel -->
        </panel>
    </userInput>
    

    You also need to include the userInputSpec.xml as a resource in your main installation file and add a UserInputPanel element for each panel that you define in userInputSpec.xml

    Like this (in the <installation> element:

    <resources>
        <!-- other resources -->
        <res id="userInputSpec.xml"  src="userInputSpec.xml" />             
    </resources>
    
    
     <panels>
        <panel classname="HelloPanel"/>             
        <panel classname="InfoPanel"/>
        <panel classname="LicencePanel"/>
        <panel classname="TargetPanel"/>
        <panel classname="TreePacksPanel"/>
        <panel classname="UserInputPanel"/>
        <panel classname="UserInputPanel"/>
        <panel classname="InstallPanel"/>
        <panel classname="ShortcutPanel"/>
        <panel classname="FinishPanel"/>
    </panels>
    

    notice the double occurence of

    I have two panels defined in my userInputSpec

    Make sure that your UserInputPanels appear before InstallPanel because you have to get the variables from the user before copying your files.

    This is just an example from my app. See the official documentation to get the idea of what the elements and attributes I used mean. There are many features connected with user input.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use izpack to create an installer for my application. So far I was
I tryed install izpack version 5.0.0 beta 8, but the compile fails with message:
Greetings, I am just starting with IzPack and I have a question for which
Hi I have installed izPack in linux operating system. I have my own java
Has anyone used IZPack with Gradle? And how easy is it to use? Any
I need to run my installer from console with java -jar myinstaller.jar and I
I'm curious if there is a way to set up an IzPack installer so
I have created installer and uninstaller using izpack. The problem I am facing is
Following http://maksim.sorokin.dk/it/2010/06/10/izpack-with-maven/ I wrote a Maven POM which creates an IzPack installer, using the
I have one installer with several packs. None is required. When I mark all,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.