<?if> is a pre-processor directive and is acted upon during compilation not at install time.
You can detect the software and set a property, this property can be used in a condition on a component or a custom action. -----Original Message----- From: Hari kris [mailto:harikr...@hotmail.com] Sent: 09 February 2012 00:41 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Using IF condition based on a Property's Value Hi, We have the following scenario: During installation we are checking for a particular Software and if it is present we need to do some action. Can this be achieved by using IF condition ? Is it possible to use a property in an IF condition? <?if $(var.test) = 1 ?><Property Id="testp" Value="Yes" /><?endif?> Can we use a property instead of $(var.test) ? Is it possible to run or not run a custom action based on a property's value Any help appreciated. Thanks, Hari ----------------------------------------------------------------------------- - Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users