Doesn't your property name Unicode need to be uppercase? If you're using
it as a Component condition I think it needs to be public to be
transferred into the server install sequence.
Phil Wilson
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Venkatesh
Sent: Thursday, May 17, 2007 9:23 AM
To: Stefan Pavlik; [EMAIL PROTECTED]; WiX-users
Subject: Re: [WiX-users] Why is my conditional statement not working
Stefan,
I think, I am hands down, with this. I donot know what is happening
here. I am not using any conditional statement in the feature now. I put
my conditional statements under components. Please these attached file.
I created a simple directory with Test under which I created test1 and
test2. Test1 has test1.txt and test3.txt. Test2 directory has
test2.text.
I have the following code under component:
<Component Id="component0" DiskId="1"
Guid="00030829-0000-0000-C000-000000000046">
<Condition><![CDATA[Unicode = "Yes"]]></Condition>
<File Id="file0" Name="test1" LongName="test1.txt"
src="D:\Demo\WIX\wixbinaries\test\test1\test1.txt" />
</Component>
<Component Id="component2" DiskId="1"
Guid="4AA9EDBB-FC6C-460C-8866-358CECF4832B">
<Condition><![CDATA[Unicode = "No"]]></Condition>
<File Id="file2" Name="Test3" LongName="Test3"
src="D:\Demo\WIX\wixbinaries\test\test1\test3.txt" />
</Component>
and in the feature:
Feature Id='Complete' Title='Teams Designer10.0.0' Description='TEAMS
complete package.'
Display='expand' Level='1' ConfigurableDirectory='TARGETDIR'>
<Feature Id='MainProgram' Title='Program' Description='Teams
executable.' Level='1'>
<ComponentRef Id='component0' />
<ComponentRef Id='component1' />
<ComponentRef Id='component2' />
Although I select option No it is installing the test1.txt file. I would
like to see test3.txt file when I select "No" option in the radio
button(TEAMS-ASCII) , in this case.
Regards
Venkatesh
Stefan Pavlik <[EMAIL PROTECTED]> wrote:
Hi Again.
(please use reply to all - to keep WiX-user in)
Read this carefully:
Here is sample code:
...
...
And here is meaning:
If 'FeatureCondition' property is set to Yes THEN the entire
feature
'F_FeatureA' will not be installed (it means that both
components
will not be installed no matter on the 'ComponentCondition'
setting).
If 'FeatureCondition' property is set to Yes THEN the feature
'F_FeatureA' will be installed. The install state of components
is
now dependent on the 'ComponentCondition' property.
- if the 'ComponentCondition' property is set to 'Yes' then
component 'component0' will be installed and 'component1' will
not
be installed
- if the 'ComponentCondition' property is set to 'No' then
component
'component1' will be installed and 'component0' will not be
installed
The element Condition belongs to element Feature or Component.
The
Condition cannot affect the ComponentRef element.
Hope that now you will understand it.
Regards
Stefan
Venkatesh wrote:
> Still I am not able to get it going. I have code like this
>
>
>
>
>
>
>
>
>
>
> When the condition is Yes, it should install Component0 and
Component1
> is n't it?. Still installs Component2 also. Same thing with
the No, It
> installs all three components. What am I doing wrong here.
Thanks in
> advance.
>
> Venkatesh
>
>
> */Stefan Pavlik /* wrote:
>
> Hi Venkatesh,
>
> The use of Condition element is different.
> You can use it in:
>
> a) inside Component element (that is probably what you want)
>
>
> ...
>
>
> the component will be installed if the condition is evaluated
to true
>
> b) inside the Feature element:
>
>
>
>
> the Feature Level will be changed to 0 if the condition is
> evaluated to true
>
> The Condition element can be used in other ways also. You can
find
> complete usage in the WIX Help file.
>
>
> Regards
>
> Stefan
>
> Venkatesh wrote:
> > I ahve a radio button where user selects a version of
> productUnicode Or
> > ASCI) depending upon I need to install a different binary. I
am using
> > condition statement under feature. Looks like it is not
working
> for me.
> > I donot know what I am doing wrong here. Please help me.
> >
> > Code as follows:
> >
> >
> > Display='expand' Level='1'
ConfigurableDirectory='TARGETDIR'>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
------------------------------------------------------------------------
> >
> >
>
------------------------------------------------------------------------
-
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and
take
> > control of your XML. No limits. Just data. Click to get it
now.
> > http://sourceforge.net/powerbar/db2/
> >
> >
> >
>
------------------------------------------------------------------------
> >
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
>
> --
> Stefan Pavlik | [EMAIL PROTECTED]
> Whitestein Technologies s.r.o. | www.whitestein.com
> Panenska 28 | 811 03 Bratislava | Slovak Republic
> Main +421 2 5443-5502 | Direct +421 2 5930-0735
>
>
--
Stefan Pavlik | [EMAIL PROTECTED]
Whitestein Technologies s.r.o. | www.whitestein.com
Panenska 28 | 811 03 Bratislava | Slovak Republic
Main +421 2 5443-5502 | Direct +421 2 5930-0735
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users