Thanks Heath....I'll look into that.
-------------------------------------------------------------------------------------------------------- Message: 2 Date: Sat, 4 Apr 2009 01:36:32 -0700 From: Heath Stewart <clubs...@gmail.com> Subject: Re: [WiX-users] Running WiX tools from Cygwin, environment variables To: "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net> Message-ID: <c59b73a0904040136l6cfa064dke88864342a2d1...@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 If you use a .wixproj, you can run msbuild /v:diag and it will show all the variables for the process - whether environment variables or project variables. Details about writing a .wixproj file (wraps all the candle, light, etc. commands into a build project) can be found in wix.chm. On Fri, Apr 3, 2009 at 6:59 PM, Geoff Kennedy <geoff.kenn...@belcarra.com> wrote: > Hi, new to the group! > > My question is this: > > I have a Cygwin shell script which sets an environment variable called > "REVISION" (set to "anotherversion"). > > My .wxs has the following code in it: > > <?define BUILD=none?> > > <!-- Override BUILD if the environment variable REVISION is preset > --> > <?ifdef $(env.REVISION) ?> > <?define BUILD=$(env.REVISION) ?> > <?endif?> > > I know the variable exists, but Candle doesn't seem to pick it up. > > The idea is that BUILD should be set to anotherversion. > > Has anyone else tried to run WiX in this way? My job needs this, so > any tips are welcome! > I've had zero success exploring the usual avenues (Google, FAQs, > etc.). > > I'm also new to XML, is there a way that I can show the incoming env. > vars from within my .wxs file? > > Thanks to all. > > GLK > > ------------------------------------------------------------------------------ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Heath Stewart Deployment Technologies Team, Microsoft http://blogs.msdn.com/heaths ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users