The <Condition> element is used in three places:

*       To prevent an installation from proceeding - this is under the
<Product> or <Fragment> elements
*       To set whether a feature is installed by default or not - under the
<Feature> element
*       To enable, disable, hide or show a control - under the <Control>
element

 

Many other operations can be controlled by conditions, but these are not
under <Condition> elements. Instead the condition is placed in the inner
text of the element. For custom actions, you place the condition in the
<Custom> element under the appropriate execute sequence.

 

Having said that, the .NET Framework is an MSI install and you cannot nest
MSI installs, nor run them concurrently. You'll have to have a bootstrapper
setup program that installs the Framework, then runs your MSI.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Timothy Meese
Sent: 01 April 2007 20:45
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Doing something with a <Condition>

 

Hello all,

 

I'm a relative WiX newbie, so please forgive the newbie question. But I've
done a lot of research into this, and it seems to be a subtle thing. I'm
aware of the <Condition> element in the WiX schema, and I have one that
detects the presence of .NET 2.0. But my requirements say that I'm supposed
to fire up the netfx.exe installer and install the framework as part of the
WiX produced setup, and there doesn't seem to be an obvious way to tie a
<Condition>, which terminates the install if it's false, and a
<CustomAction>. Thus my question, can I conditionally perform a
<CustomAction> (they seem unconditional)? 

 

Thanks,

Tim

-------------------------------------------------------------------------
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

Reply via email to