|
From: Rob M. <ro...@us...> - 2005-11-03 16:31:33
|
AFAIK, what you did is the only way to get it working. Radio buttons can't
set Properties to empty. <sigh/>
_____
From: Baker, Steve [mailto:ste...@ga...]
Sent: Thursday, November 03, 2005 8:28 AM
To: ro...@us...; wix...@li...
Subject: RE: [WiX-users] condition syntax reference
I actually played around with it till I figured that out :-)
What I couldn't figure out, didn't try to hard ;), is how to set PRODUCTION
to "" from an option dialog:
<Control Id="RadioButtonGroup" Type="RadioButtonGroup" X="18" Y="108"
Width="348" Height="138" Property="PRODUCTION">
<Text><![CDATA[{\VSI_MS_Shell_Dlg13.0_0_0}MsiRadioButtonGroup]]></Text>
<RadioButtonGroup Property="PRODUCTION">
<RadioButton Value="0" X="0" Y="0" Width="348" Height="17"
Text="{\VSI_MS_Sans_Serif13.0_0_0}QA" />
<RadioButton Value="1" X="0" Y="24" Width="348" Height="17"
Text="{\VSI_MS_Sans_Serif13.0_0_0}Production" />
</RadioButtonGroup>
</Control>
If I set <RadioButton Value="" I get errors from candle saying to omit the
element all together. If I omit the element I get errors saying it is
required.
I just worked around it like:
<Component Id="ProductionConfiguration"
Guid="4F835B88-0E65-4367-B62A-C2810C025391" DiskId="1" >
<File Id="webprod.config" LongName="web.config" Name="WEB.CON"
src="app\webprod.config" />
<Condition><![CDATA[PRODUCTION="1"]]></Condition>
</Component>
Thanks for the help :-)
steve
_____
From: Rob Mensching [mailto:ro...@us...]
Sent: Thursday, November 03, 2005 10:22 AM
To: Baker, Steve; wix...@li...
Subject: RE: [WiX-users] condition syntax reference
"PRODUCTION" will be true if it has any value at all. "0" is TRUE. "1" is
TRUE. Only "" is FALSE.
_____
From: wix...@li...
[mailto:wix...@li...] On Behalf Of Baker, Steve
Sent: Wednesday, November 02, 2005 11:30 AM
To: wix...@li...
Subject: [WiX-users] condition syntax reference
Is there a reference in the documentation or online somewhere that details
out the conditional syntax used in wix?
I am trying to conditionally install a component and I am guessing my
conditional syntax is wrong. If you want details they are below, but really
just a link to the a reference would be great :-)
<Component Id="ProductionConfiguration"
Guid="4F835B88-0E65-4367-B62A-C2810C025391" DiskId="1" >
<File Id="webprod.config" LongName="web.config" Name="WEB.CON"
src="myapp\webprod.config" />
<Condition>PRODUCTION</Condition>
</Component>
<Component Id="QAConfiguration" Guid="AB12FA54-CD9E-4B1E-8FF4-3CB329268D3C"
DiskId="1" >
<File Id="webqa.config" LongName="web.config" Name="WEB.CON" src="
myapp\webqa.config" />
<Condition>NOT PRODUCTION AND NOT STAGING</Condition>
</Component>
Something is wrong though, the production version is always installed. The
ui has this:
<Control Id="RadioButtonGroup" Type="RadioButtonGroup" X="18" Y="108"
Width="348" Height="138" Property="PRODUCTION">
<Text><![CDATA[{\VSI_MS_Shell_Dlg13.0_0_0}MsiRadioButtonGroup]]></Text>
<RadioButtonGroup Property="PRODUCTION">
<RadioButton Value="0" X="0" Y="0" Width="348" Height="17"
Text="{\VSI_MS_Sans_Serif13.0_0_0}QA" />
<RadioButton Value="1" X="0" Y="24" Width="348" Height="17"
Text="{\VSI_MS_Sans_Serif13.0_0_0}Production" />
</RadioButtonGroup>
</Control>
Production is declared like so:
<Property Id="PRODUCTION"><![CDATA[1]]></Property>
Thanks,
steve
|