The code you give seems fine. Did you want to do it at run-time instead of at
compile time ?

-----Original Message-----
From: Natalie Carr [mailto:natalie.c...@measuresoft.com] 
Sent: 19 September 2012 12:37
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] set a property using If statements

Is it possible to set a property using If statements, I would like something
like this to work but it doesn't and I am not sure if it can even be done:

 

    <?if $(var.ProductName) = "SomeName ?>

    <Property Id="NUMLOGGERS" Secure="yes" Value="2"/>

    <?else?>

    <Property Id="NUMLOGGERS" Secure="yes" Value="16"/>

    <?endif?>

 

Kind Regards,

 

Natalie Carr

 

-----------------------------------------------------------------------------
-
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will
include endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to