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?
IzPack TargetPanel lets one select one target directory. However I need to allow users
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You can create a
UserInputPaneland get the path as a variable from the user. Then you can use variable substitution anywhere you want. You’ll have to add auserInputSpec.xmlfile and define your own panels (as many as you want). To get a directory, use<field type="dir" ... >Example
userInputSpec.xmlfrom an application of mine. I include mongoDB with the installer and use this to get some settings.You also need to include the
userInputSpec.xmlas a resource in your main installation file and add aUserInputPanelelement for each panel that you define inuserInputSpec.xmlLike this (in the
<installation>element:notice the double occurence of
I have two panels defined in my userInputSpec
Make sure that your
UserInputPanelsappear beforeInstallPanelbecause 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.