[izpack-users] install pack based on complex conditions (repost)
othmanelmoulat at menara.ma
Mon Mar 12 09:25:06 CET 2007
many thanks Denis i appreciate a lot your help and will try your solution.
I would appreciate also the second solution you promised to propose for
also Dennis, i wanted to ask if using a processpanel is the best way to
automate openoffice exe installer?
well i did that and this is working how ever i have an issue that i need
if user doesn't have oo and choose to install it then i'm launching the
oo_instller.exe from izpack process panel .how ever in this way i loose
all control on the other installation wizard of oo installer ..so i
wonder how i would know the path the user selected to install oo. (i
need to save this path in a properties file)
well if the oo_installer.exe sets some environment variable holding oo
home folder then i can write a small java class to get this variable
.but the question : does the oo installer sets some variable of that kind ?
otherwise i don't see how we can know the target oo path .
what u think ? do you have an idea ?
Dennis Reil wrote:
>> 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
> There're two possibilities to solve this problem.
> 1. a) Use a PackSelectionPanel
> b) define a packselectioncondition like this:
> <condition type="packselection" id="pack1selected">
> and the negated one: (in the current trunk, this is optional)
> <condition type="not" id="notpack1selected">
> <condition type="ref" refid="pack1selected"/>
> 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
> <panelcondition panelid="pack1pathselection"
> conditionid="notpack1selected" />
> with the current trunk, you can also write:
> <panelcondition panelid="pack1pathselection" conditionid="!
> pack1selected" />
>> 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.
>> No virus found in this outgoing message
>> Checked by PC Tools AntiVirus (188.8.131.52 - 9.065.007).
>> izpack-users mailing list
>> izpack-users at lists.berlios.de
No virus found in this outgoing message
Checked by PC Tools AntiVirus (184.108.40.206 - 9.066.001).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the izpack-users