All,

I am trying to do something a little unique and it's got me a bit confused:

When installing interactively, I want to provide an option to install all 
features of the package
When installing non-interactively, I want to only install the main feature 
unless a command line parameter is set (in the example below, SETTINGS=1)

I'm trying to accomplish this using the following condition on this non-main 
feature:

    <Feature Id="EvalSettings" Title="Evaluation Settings" Level="1" 
ConfigurableDirectory="INSTALLDIR" AllowAdvertise="no" Display="expand">
      <Condition Level="0"><![CDATA[(NOT Privileged) OR ((UILevel<5) AND 
(SETTINGS<>1))]]></Condition>
      <ComponentRef Id="EvalSettings" />
      <ComponentRef Id="EvalExtensions" />
    </Feature>

I have a problem though.  If I uninstall in a UI level < 5 (e.g., from 
Add/Remove Programs), this feature is not being uninstalled.  I understand that 
this is because the conditions operate on both install and uninstall.  My 
problem is that I can't figure out a way to say "Always install this feature in 
interactive mode, install it if SETTINGS=1 in non-interactive mode, and always 
uninstall this feature when uninstalling in any mode.

Surely this can be done, but I am a WIX beginner and can't figure it out 
myself.  Any suggestions?

Bill
__________________________
Bill Canning, CISSP
Program Manager
Solutions for Security & Compliance
Microsoft Corporation
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
425.722.7177

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