You need to use Type 51 CustomActions with conditions. MSI is more declarative
than procedural so this sort of thing isn't always as trivial as you might
expect coming from a procedural language. Fortunately, the only time you do
this sort of thing is for UI so the impact of getting it wrong is usually
reduced.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lindsay Harris
Sent: Friday, March 02, 2007 11:26 AM
To: wix-users@lists.sourceforge.net
Cc: Rajive Kumar
Subject: [WiX-users] simple question
Hi. This is probably a really stupid question but I am very new to wix...
I was wondering if there is away to do this:
If (a == b)
C = "some string"
Else
C = "some other string"
Under the <product> element (in other words I am not in a control or dialog).
I have been trying stuff like this but it doesn't compile:
<Property Id="is20">
<![CDATA[MsiNetAssemblySupport >= "2.0.50727"]]>
</Property>
<?if [is20]?>
<Property Id="URT_VER" Value="2.0" />
<?else?>
<Property Id="URT_VER" Value="1.1" />
<?endif?>
Any help would be appreciated!!
Thanks!
Lindsay Harris
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users