[wix-users] How to control what files to be installed (Condition)
JoCooper at jackhenry.com
Wed Mar 23 09:25:24 PDT 2016
You'd need to put the condition in each Component. If there is a separate Feature for all the conditional components, you will also need a condition for the feature.
Note that the condition is not evaluated each time by default. If the property values controlling the condition are very changeable, you'll need to mark the component transitive which has its own consequences.
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
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Ronny Eriksson
Sent: Wednesday, March 23, 2016 10:54 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] How to control what files to be installed (Condition)
The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin.
So i'm not sure if this is possible or not but i ask anyway to see if anyone of you have a solution for it because i can't figure it out.
What i want to do is this.
I want to have a dialog that askes the user if this is a new install or an update of existing installations.
This dialog is not the problem.
But how do I then control what files are installed when choosing the new install or the update existing option?
Can i somehow do a condition on what ComponentsGroupRef/ComponenRef that will be used or something like that and if so how can I do it?
I know I can't do this:
<ComponentGroupRef Id="MyNewInstallFiles" ><![CDATA[NEWINSTALL]]></ComponentGroupRef>
<ComponentGroupRef Id="MyUpdateFiles" ><![CDATA[UPDATE]]></ComponentGroupRef>
But that it's essentially what I would like to do... if you understand what I'm think of here.
Any example would be appreciated.
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