[lokisetup] Need help with <exclusive>.
Gerhard Burger
lat at averlat.net
Sun Mar 26 08:34:52 EST 2006
I made a short test case where only a textfile is installed.
When I select option 3 I can't install twice. For option 1 and 2 the
options are still selectable after I installed one of them.
======================================
setup.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<install
product="test_exclusive"
desc="test_exclusive_due_to_problems"
version="1.00"
promptbinaries="yes"
express="no"
>
<component name="Some option" version="1.1" default="no">
<option size="1k" install="false">
Install some option
<exclusive>
<option install="true" tag="option1">
Install option1
<files>
option1_selected.txt
</files>
</option>
<option tag="option2">
Install option2
<files>
option2_selected.txt
</files>
</option>
<option tag="option3">
Install option3
<files>
option3_selected.txt
</files>
</option>
</exclusive>
</option>
</component>
</install>
======================================
config of installed games when option1 installed:
<?xml version="1.0"?>
<product name="test_exclusive" desc="test_exclusive_due_to_problems"
xmlversion="1.6" root="/home/gerhard/test_exclusive"
update_url="http://icculus.org/">
<component name="Some option" version="1.1" default="yes">
<option name="Install option1" tag="option1">
<file md5="d41d8cd98f00b204e9800998ecf8427e"
mode="0644">option1_selected.txt</file>
</option>
<option name="Install some option"/>
</component>
</product>
======================================
config of installed games when option2 installed:
<?xml version="1.0"?>
<product name="test_exclusive" desc="test_exclusive_due_to_problems"
xmlversion="1.6" root="/home/gerhard/test_exclusive"
update_url="http://icculus.org/">
<component name="Some option" version="1.1" default="yes">
<option name="Install option2" tag="option2">
<file md5="d41d8cd98f00b204e9800998ecf8427e"
mode="0644">option2_selected.txt</file>
</option>
<option name="Install some option"/>
</component>
</product>
======================================
config of installed games when option3 installed:
<?xml version="1.0"?>
<product name="test_exclusive" desc="test_exclusive_due_to_problems"
xmlversion="1.6" root="/home/gerhard/test_exclusive"
update_url="http://icculus.org/">
<component name="Some option" version="1.1" default="yes">
<option name="Install option3" tag="option3">
<file md5="d41d8cd98f00b204e9800998ecf8427e"
mode="0644">option3_selected.txt</file>
</option>
<option name="Install some option"/>
</component>
</product>
======================================
Alternatively the files:
setup.xml: http://averlat.net/data/winex/loki/setup.xml
loki_installation_file for option1:
http://averlat.net/data/winex/loki/test_exclusive.xml_part1.xml
loki_installation_file for option2:
http://averlat.net/data/winex/loki/test_exclusive.xml_part2.xml
loki_installation_file for option3:
http://averlat.net/data/winex/loki/test_exclusive.xml_part3.xml
regards,
Gerhard B.
On Sun, 26 Mar 2006 13:59:30 +0200, "Gerhard Burger" <lat at averlat.net>
said:
> Hi,
>
> I'm using the <exclusive>-tag so only one option of a component with
> different possible options is installed. But I can't get it right.
>
> When I select the second or third option I cannot install the component
> again. If I select the first option it is still possible. I tried to
> rearrange the options to test if the option is faulty but the same error
> with the (different) 1.option occures.
>
> I uploaded the setup.xml ( http://averlat.net/data/winex/loki/setup.xml
> ) and the loki_file of the installed games (
> http://averlat.net/data/winex/loki/morrowind_german_plugins.xml ).
> It's an plugin installer where a few plugins have more than one
> possibility to install it. E.g. the plugin "Potions". It is installed
> but it's still selectable if I install the first options.
>
> Is there something I've to take care of?
>
> regards
More information about the Lokisetup
mailing list