Hey Pankaj,

Your subject has MSBuild in the title. Am I to assume that the build process
is calling candle and light from an MSBuild task? Are you using the WIX
MSBuild tasks? Either way, you should be able to pass variables to candle
and light using properties set inside of MSBuild.

if calling via command line
candle.exe -dVariableName=$(MyVariableValue)

if using WIX MSBuild Tasks

set the $(DefineConstants) property to what you want to pass.

Thanks,

Brian Rogers
"Intelligence removes complexity." - Me
http://icumove.spaces.live.com


On Wed, Feb 11, 2009 at 1:18 PM, Wendell Joost <wende...@gmail.com> wrote:

> If memory serves correct, the $env syntax allows you to read
> environment variables - does the build environment set environment
> variables you can use?
>
> Wendell
>
> On Wed, Feb 11, 2009 at 12:55 PM, Pankaj Agrawal (Infosys Technologies
> Ltd) <v-pa...@microsoft.com> wrote:
> > Hi,
> >
> > I have created a WiX file and I have hardcoded file path in it.
> > Now during daily build the path is getting changed and I have to
> integrate this wix file with daily build.
> > Here we are dropping the bits into binary and copying them to some other
> folder (which will be changed with every build). I have to pass the folder
> location to my wix file.
> >
> > My problem is if I am defining variables in my wix file then how I am
> going to pass those variables to my WiX file while running the candle and
> light exe's.
> >
> > Thanks,
> > Pankaj
> >
> >
> >
> ------------------------------------------------------------------------------
> > Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> > software. With Adobe AIR, Ajax developers can use existing skills and
> code to
> > build responsive, highly engaging applications that combine the power of
> local
> > resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> > Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
>
>
> --
> "Some people come visit Europe and are really let down when they find
> out it's not like a credit-card commercial; others really get into
> meeting all the quirky people and careening along narrow mountain
> roads in rickety cabs driven by suicidal, gap-toothed Carpathians. I
> guess it's pretty obvious which one you are..." - Justin Crevier, May
> '01
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to