[wix-users] How to control what files to be installed (Condition)

David Watson dwatson at sdl.com
Wed Mar 23 09:15:29 PDT 2016


Hi,
You can do all this automatically without writing your own dialogues etc.

The Major upgrade pattern allows you to release version 1 of your installer, make some changes to it, increase its version and version 2 will upgrade if version 1 is present or clean install on a blank machine.

http://wixtoolset.org/documentation/manual/v3/howtos/updates/major_upgrade.html

Dave


 [http://dr0muzwhcp26z.cloudfront.net/static/corporate/SDL-logo-2014.png] <www.sdl.com/>
www.sdl.com


SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.

SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Ronny Eriksson
Sent: 23 March 2016 15:54
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] How to control what files to be installed (Condition)

Hi Eveyone

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.
Ronny Eriksson


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


This message has been scanned for malware by Websense. www.websense.com



More information about the wix-users mailing list