[wix-users] Show a message when no features are selected

John Cooper JoCooper at jackhenry.com
Thu Nov 19 07:58:25 PST 2015


Use of Feature state before CostFinalize is going to be unreliable at best.  When processing Feature states for UI, there is a very narrow window where those states have any meaning.

Your testing will need to be exhaustive to catch the edge cases.  Upgrades, repairs, and patching can be a bear with only a subset of Features installed.

I have one Feature-driven MSI.  There is a reason why I am ripping it apart into 6-15 separate MSIs and wrapping with a custom bootstrapper.

--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Enterprise Notification Service
Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 |JoCooper at jackhenry.com



-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Kaveesh Dashora
Sent: Thursday, November 19, 2015 7:41 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Show a message when no features are selected

The e-mail below is from an external source.  Please do not open attachments or click links from an unknown or suspicious origin.

Awesome!!! Let me try this...

*--*
*Kaveesh*



On Thu, Nov 19, 2015 at 3:06 PM, Rob Hamflett <robworksn at outlook.com> wrote:

> Hi,
>
> I'm currently doing the same thing and the following seems to be 
> working for me.
>
> I have some preprocessor properties defined like this:
> <?define Feature1SelectedOrAlreadyInstalled = (&Feature1=3 OR 
> (!Feature1=3 AND NOT &Feature1=2))?> <?define 
> Feature2SelectedOrAlreadyInstalled = (&Feature2=3 OR (!Feature2=3 AND 
> NOT &Feature2=2))?> <?define Feature3SelectedOrAlreadyInstalled = 
> (&Feature3=3 OR (!Feature3=3 AND NOT &Feature3=2))?> <?define 
> FeatureSelected = ($(var.Feature1SelectedOrAlreadyInstalled) OR
> $(var.Feature2SelectedOrAlreadyInstalled) OR 
> $(var.Feature3SelectedOrAlreadyInstalled))?>
>
> In the above, "Feature1", "Feature2" and "Feature3" are the values 
> from the Feature at Id entries.
> The condition for each feature is:
> "feature selected for installation" OR ("feature is already installed" 
> AND NOT "feature is going to be removed")
>
> I then have the following elements as children of the SelectionTree 
> control and the "reset" PushButton control:
> <Publish Property="FEATURE_SELECTED" Value="1" Order="1">
>   <![CDATA[$(var.FeatureSelected)]]>
> </Publish>
> <Publish Property="FEATURE_SELECTED" Value="0" Order="2">
>   <![CDATA[NOT $(var.FeatureSelected)]]> </Publish>
>
> Finally, the "next" button opens the next dialog if 
> FEATURE_SELECTED="0", or a warning dialog if FEATURE_SELECTED="1".
>
> I hope this was useful,
> Rob
>
>
> On 18/11/2015 15:16, Kaveesh Dashora wrote:
>
>> Hi,
>>
>> I have created a msi using wix 3.9. There are two features in the MSI...
>> In
>> the current implementation, the installation succeeds even if there 
>> are no features selected... Is there a way through which I can show a 
>> message when no features are selected. The install button should only 
>> work when there is atleast one feature selected.
>>
>> Regards,
>> Kaveesh
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant 
>> http://www.firegiant.com/
>>
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant 
> http://www.firegiant.com/
>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

NOTICE: This electronic mail message and any files transmitted with it are intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged information.
Any unauthorized review, use, printing, saving, copying, disclosure or distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.



More information about the wix-users mailing list