The Wix help contains a section "Working with visual studio". The "Using Project References and Variables" topic under there describes how visual studio settings map to Wix pre-processor variables. The one youre interested in is var.<ProjectName>.FullConfiguration. There are some others that may be of use too.
-----Original Message----- From: Daniel Sniderman [mailto:dani...@magenic.com] Sent: 10 January 2012 18:21 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Conditionally Include based on Build Configuration I'm working on automating our Build - and migrating from VS Setup to WIX. We have a Windows Forms Application that has two different Configurations - One to Deploy to Citrix Servers and another for occasionally connected Laptop Users (plus several "environments" dev/qa/prod etc) For the two different configurations the differences are in differing config settings (which I've already figured out how to) What I need help with - the Laptop MSI needs include an additional EXE and a few corresponding files - and add a shortcut to the additional EXE to the startup folder. Ideally I'd like one WIX solution (and wxs file if possible) that based on the "Configuration to Build" setting (ideally both from a desktop build and a TFS 2010 build) create the appropriate MSI. (IE - I don't want a single type of MSI that requires the user to select based on UI). What is the best way to implement this? Thanks! Daniel P. Sniderman| Sr Consultant| Magenic MCSD.NET, MCTS: Team Foundation Server 2010 Administration 333 E. Butterfield Rd. Suite 100, Lombard, IL 60148 Mobile: 847-668-4882 | eFax 847-390-7810 magenic.com | dani...@magenic.com<mailto:dani...@magenic.com> ----------------------------------------------------------------------------- - Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users 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. ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users