[izpack-users] how to use createForUnselectedPack

Dennis Reil Dennis.Reil at reddot.de
Fri Apr 13 14:22:59 CEST 2007

Ok, one problem is, it has to be <condition type="com.izforge.izpack.rules.JavaCondition"
id="linux.install">. Sorry, my fault.
Try again. I think, it should work than.


-----Ursprüngliche Nachricht-----
Von: izpack-users-bounces at lists.berlios.de [mailto:izpack-users-bounces at lists.berlios.de] Im Auftrag von abdess
Gesendet: Freitag, 13. April 2007 13:47
An: izpack-users at lists.berlios.de
Betreff: Re: [izpack-users] how to use createForUnselectedPack

hi Dennis ,
thank  you very much for your answer.
i'd like to tell you , that i have done what you have suggested  to me , but
i still don't have what i want .
bellow what i've done :

in my install.xml file , i have :

<installation version="1.0">
                 <res src="BASE/UserInputSpec.xml" id="userInputSpec.xml"/>
	         <res src="BASE/conditions.xml"  id="conditions.xml"/>
                 <panel classname="UserInputPanel" id="panel.0"/>
		<panel classname="UserInputPanel" id="panel.1"/>
             <pack name="MyPack" preselected="yes" required="no"
id="install.myPack" os="unix">
my UserInputSpec.xml file contains :
     <panel order="0" id="panel.0">
     <panel order="1" id="panel.1">
finally i added a file conditions.xml , which contains :
<?xml version="1.0" ?>

<!--condition 1 -->
<condition type="de.reddot.installer.rules.JavaCondition"
		<returnvalue type="boolean">true</returnvalue>

<!--condition 2-->
<condition type="packselection" id="MyPackSelected">

<!--condition 3 -->
<condition type="not" id="NotMyPackSelected">
	<condition type="ref" refid="MyPackSelected"/>

<!--condition 4 -->
<condition type="and" id="showMyPackInstall">
	<condition type="ref" refid="linux.install"/>
	<condition type="ref" refid="MyPackSelected"/>

<!--condition 5 -->
<condition type="and" id="showMyPackNotInstall">
	<condition type="ref" refid="linux.install"/>
	<condition type="ref" refid="NotMyPackSelected"/>

<panelcondition conditionid="showMyPackInstall" panelid="panel.0"/> 
<panelcondition conditionid="showMYPackNotInstall" panelid="panel.1"/> 


my problem is ,  whatever i do a Linux installation or a windows  one ,  the
two panels appear alwayse.

please help!

View this message in context: http://www.nabble.com/how-to-use-createForUnselectedPack-tf3552508.html#a9977488
Sent from the izpack users mailing list archive at Nabble.com.

izpack-users mailing list
izpack-users at lists.berlios.de

More information about the izpack-users mailing list