[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.
Regards,
Dennis
-----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">
...
<resources>
...
<res src="BASE/UserInputSpec.xml" id="userInputSpec.xml"/>
<res src="BASE/conditions.xml" id="conditions.xml"/>
</resources>
<panels>
...
<panel classname="UserInputPanel" id="panel.0"/>
<panel classname="UserInputPanel" id="panel.1"/>
</panels>
...
<packs>
...
<pack name="MyPack" preselected="yes" required="no"
id="install.myPack" os="unix">
...
</pack>
</packs>
</installation>
----------------------------------
my UserInputSpec.xml file contains :
<userInput>
<panel order="0" id="panel.0">
....
</panel>
<panel order="1" id="panel.1">
....
</panel>
</userInput>
----------------------------------
finally i added a file conditions.xml , which contains :
<?xml version="1.0" ?>
<conditions>
<!--condition 1 -->
<condition type="de.reddot.installer.rules.JavaCondition"
id="linux.install">
<java>
<class>com.izforge.izpack.util.OsVersion</class>
<field>IS_LINUX</field>
</java>
<returnvalue type="boolean">true</returnvalue>
</condition>
<!--condition 2-->
<condition type="packselection" id="MyPackSelected">
<packid>install.myPack</packid>
</condition>
<!--condition 3 -->
<condition type="not" id="NotMyPackSelected">
<condition type="ref" refid="MyPackSelected"/>
</condition>
<!--condition 4 -->
<condition type="and" id="showMyPackInstall">
<condition type="ref" refid="linux.install"/>
<condition type="ref" refid="MyPackSelected"/>
</condition>
<!--condition 5 -->
<condition type="and" id="showMyPackNotInstall">
<condition type="ref" refid="linux.install"/>
<condition type="ref" refid="NotMyPackSelected"/>
</condition>
<panelcondition conditionid="showMyPackInstall" panelid="panel.0"/>
<panelcondition conditionid="showMYPackNotInstall" panelid="panel.1"/>
</conditions>
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
https://lists.berlios.de/mailman/listinfo/izpack-users
More information about the izpack-users
mailing list