[wix-users] moving UI code into a fragment in separate source file
David Watson
dwatson at sdl.com
Sun Oct 1 00:19:58 PDT 2017
Include is for inserting code inline (usually small repeated fragments).
If you want to split your code into manageable chunks just author several wxs files and add them to the wixproj (or command line if you build that way).
Any time you make a reference across a fragment - whatever file it is in - the linker will link in all the relevant parts.
Dave
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 Joseph L. Casale via wix-users
Sent: 01 October 2017 08:02
To: 'WiX Toolset Users Mailing List' <wix-users at lists.wixtoolset.org>
Cc: Joseph L. Casale <jcasale at activenetwerx.com>
Subject: Re: [wix-users] moving UI code into a fragment in separate source file
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Alan Sinclair via wix-users
Sent: Saturday, September 30, 2017 10:30 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Alan Sinclair <anadem at gmail.com>
Subject: [wix-users] moving UI code into a fragment in separate source file
> I'm going to need to extend the installer UI so want to move that code
> into a separate source file, gui.wxs. I assume it will be a fragment
> but how do I reference it so it's included in the MSI? (Sorry, this
> feels like a really dumb question!)
Use an include preprocessor, see http://wixtoolset.org/documentation/manual/v3/overview/preprocessor.html
That literally inserts what's wrapped in the include element from the referenced code into the spot the PP directive exists.
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list