[wix-users] question about feature selection(s)
Lewis Henderson
henderso at opentext.com
Tue Mar 28 09:29:12 PDT 2017
Hi Steve,
I have a similar feature selection algorithm, but I start with <Feature... Level="1"> and then use a <Condition Level="0">..</Condition> to disable the feature. This allows the CostInitialize/CostFinalize steps to take the feature into account, but during the InstallExecuteSequence the conditions are re-evaluated, so the features are installed appropriately. I don't know if this will work for you, but it seems to for me.
Lewis Henderson
PS: Do you need the REMOVE within your condition expression? Just wondering...
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Steve Ogilvie
Sent: Tuesday, March 28, 2017 12:18 PM
To: WiX User List <wix-users at lists.wixtoolset.org>
Subject: [EXTERNAL] - [wix-users] question about feature selection(s)
Hi all,
I have a new "server" MSI it has several features, however it has 2 radio buttons on the welcome page, this will install a specific client feature based on the value of the radio button... i.e.
install client x (ENABLE_CLIENT = 1 if selected)
install client y (ENABLE_CLIENT = 0 if selected)
I have the UI responding perfectly (since we have some dialogs that should or should not be shown, depending on what client is being installed.
The only issue (so far) is that some files ARE not being installed because the radio button property is NOT set to 1 (it is 0) so client y
in my Features that I have to install if client y is selected i have:
<Feature Id="Feature_WebApp_ClientY"
Title="ClientY"
Level="0"
Display="expand"
ConfigurableDirectory="DIRECTORY_PATH_CLIENTY">
<ComponentGroupRef Id="ProductComponents_ClientY" />
<Condition Level="1"><![CDATA[ENABLE_CLIENT = "0" OR REMOVE]]></Condition> </Feature>
I have a few features selected or not selected, custom actions run or not run based on which radio button was selected in the Welcome page (during a silent install they will have to set the ENABLE_CLIENT to 1 or 0 depending on which client they want installed...
However, it seems that feature selection is done BEFORE the Welcome page shows up, so how can i get that properly set up?
do I have any options?
thanks,
Steve
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=DwICAg&c=ZgVRmm3mf2P1-XDAyDsu4A&r=yAhF6NGJ7EPmZkvswZOswwnYxaueKkO53V282tTn1P4&m=2IJ8rtRQB2dHRaWw3UdOFMMEznjPOALdvOc0hy3ogZA&s=imAegsnG5d0NClEewUC3vqtaIYoPsoHQrNE9SYO8bFI&e=
More information about the wix-users
mailing list