[izpack-users] how to use createForUnselectedPack

Dennis Reil Dennis.Reil at reddot.de
Tue Apr 10 15:21:36 CEST 2007


You can use the panelconditions instead of the createForPack/createForUnselectedPack-Elements. You will then have to create an AndCondition which consists of a condition for the OS and a condition for the selected pack.

<condition type="and" id="mypack">
			<condition type="de.reddot.installer.rules.JavaCondition">
				<java>
					<class>com.izforge.izpack.util.OsVersion</class>
					<field>IS_LINUX</field>
				</java>
				<returnvalue type="boolean">true</returnvalue>
			</condition>
                 <condition type="packselection" id="MyPackselected">
                       <packid>MyPack</packid>
                 </condition>
</condition>

You'll have to add corresponding not condition and two panel conditions for the two UserInputPanel.

Regards,
  Dennis

-----Ursprüngliche Nachricht-----
Von: izpack-users-bounces at lists.berlios.de [mailto:izpack-users-bounces at lists.berlios.de] Im Auftrag von abdessamad danguir
Gesendet: Dienstag, 10. April 2007 13:45
An: users izpack
Betreff: [izpack-users] how to use createForUnselectedPack

hi all,
i have a Pack which should be installed only in linux platform : 
<pack name="MyPack" preselected="yes" required="no"  os="unix">  ..
</pack>

for this pack there are two "userInputPanel":
the first contains :
<panel order="0">    
	  <createForPack name="MyPack"/>
          ....
</panel>

and the second contains :
<panel order="1">
           <createForUnselectedPack name="MyPack"/>
           ....
</panel>

the problem is : when i try to do an installation on windows platform , the second panel appears .  
i dont want to see any of the 2 panels when i'am doing a windows installation , what should i do ?




More information about the izpack-users mailing list