[izpack-users] install pack based on complex conditions (repost)

Dennis Reil Dennis.Reil at reddot.de
Mon Mar 12 09:11:10 CET 2007


Hi,


> 1.display a UserInputPanel  asking user if he /she wants to install a 
> pack or not (I'm thinking to use check boxes for this: yes and no)
> 2. if user decides not to install the pack (checks no); i should ask him 
> for the path where this pack is currently installed . then i should 
> validate this path (not empty) if path is empty the installation should 
> fail (be canceled).if path is correct i should save this path to a 
> .properties file.
> 3.if user checks yes (decides to install pack ) then i should display a 
> ProcessPanel

There're two possibilities to solve this problem.
1. a) Use a PackSelectionPanel
   b) define a packselectioncondition like this: 
       <condition type="packselection" id="pack1selected">
            <packid>pack1</packid>
       </condition>
      and the negated one: (in the current trunk, this is optional)
       <condition type="not" id="notpack1selected">
             <condition type="ref" refid="pack1selected"/>
       </condition>
      Note, that there has to be a pack in install.xml with id pack1
   c) Use a panelcondition like the following to show the user input
panel:
      <panelcondition panelid="pack1pathselection"
conditionid="notpack1selected" />

      with the current trunk, you can also write:
      <panelcondition panelid="pack1pathselection" conditionid="!
pack1selected" />

Regards,
   Dennis

> I'm new to izpack and need to implement this feature urgently : it would 
> be nice if some one helps me write the xml configuration files to 
> implement this feature.
> 
> your help is greatly appreciated.
> 
> thanks.
> 
> othman
> 
> 
> 
> No virus found in this outgoing message
> Checked by PC Tools AntiVirus (3.1.0.10 - 9.065.007).
> http://www.pctools.com/anti-virus/
> _______________________________________________
> izpack-users mailing list
> izpack-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/izpack-users
-- 



More information about the izpack-users mailing list