Custom Action Type 51 is your friend:

<CustomAction Id="AisOne" Property="B" Value="A is one" />
<CustomAction Id="AisNotOne" Property="B" Value="A is not one" />

<XXXSequence>
  <Custom Action="AisOne" After="...">A=1</Custom>
  <Custom Action="AisNotOne" After="...">A<>1 OR NOT A</Custom>
</XXXSequence>

Obviously, XXXSequence - whatever sequence table you need to schedule these 
actions in, for example, InstallExecuteSequence.

Regards,
Alex Shevchuk


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sajid1105
Sent: Monday, July 28, 2008 8:12 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Conditional Property Value


I want to set a property value depending on a condition..

<Property Id="A" Value="1"/>
<Property Id="B" Value="Some value"/>

if A == 1 then
   B = "A is one"
else
   B = "A is not one"

How do I do this?



--
View this message in context: 
http://www.nabble.com/Conditional-Property-Value-tp18704186p18704186.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to