You can use Conditions on your Features to set the Level.

e.g.

<Feature Id="MyFeatureA" Title="My Feature A" Level="1000">
  <Condition Level="9999">
    <![CDATA[ONLYB]]>
  </Condition>
  <ComponentRef Id="MyComponentA" Primary="yes"/>
</Feature>

<Feature Id="MyFeatureB" Title="My Feature B" Level="2000">
  <ComponentRef Id="MyComponentB" Primary="yes"/>
</Feature>

If you ran your MSI as "msiexec /i myproduct.msi INSTALLELEVEL=2000
ONLYB=true" it would only install Feature B as Feature A would have it's
Level set to 9999 since the public Property ONLYB has a value assigned. 

Thus to install it for your cases:
Only A = "msiexec /i myproduct.msi INSTALLELEVEL=1000"
A+B    = "msiexec /i myproduct.msi INSTALLELEVEL=2000"
Only B = "msiexec /i myproduct.msi INSTALLELEVEL=2000 ONLYB=true"


Palbinder Sandher 
Software Deployment and IT Administrator 

T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 
http://www.iesve.com 

**Design, Simulate + Innovate with the <Virtual Environment>**

Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP

Email Disclaimer



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dschmitz
Sent: 11 September 2008 14:29
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] MSIEXEC installlevel feature


Hello,

I'm just wondering if it is possible with MSI and with Wix to have 2
features and to choose via msiexec command line which of the two
features should be installed. If I give a feature a "Level" attribute in
Wix msi installs everything with a feature LEVEL <=  the specified
INSTALLLEVEL. But I want to choose exactly one feature, so just "equal"
instead of "<=".

So if I have:
A: Configuration 1 LEVEL=1000
B: Configuration 2 LEVEL=2000

I can either install A or A+B but not just B.

Does anybody know, if there is another possibility?

Thanks
Daniel

--
View this message in context:
http://n2.nabble.com/MSIEXEC-installlevel-feature-tp1082699p1082699.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