We actually do this with our build. The way we implemented it was to use an include file. They we run a program that writes the values into the include file as a task (or activity); when the wix code is built, it simply includes the file with the definitions needed.
In our case, we used this for updating the WiX installer version number information. -----Original Message----- From: Adam Burton [mailto:[email protected]] Sent: Thursday, December 02, 2010 1:40 PM To: [email protected] Subject: Re: [WiX-users] msbuild variables in wix source files On Thursday 02 Dec 2010 18:59:37 Sean Farrow wrote: > Hi: > Is it possible to use msbuild variables (such as $(configuration)) in > a .wxs source file? Any help appreciated. > Cheers > Sean. > ---------------------------------------------------------------------- > ----- > --- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with > the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > WiX-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wix-users Yes. I believe what you are looking for is $(var.Configuration). I use the ones provided by csproj's all the time. By using votive and adding references to the csharp projects you get access to their "macros" like TargetPath. So for example $(var.Project1.TargetPath) is the path to the executable after its being (eg Project1\bin\Debug\Project1.exe). Using these tends to also be quite nice since I don't have to worry about different output paths for different mixtures of platforms and configurations as the macros handles all that for me. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ WiX-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

