Hi Blair, Thanks for replying. I have declared them the way you have mentioned. But it still doesn't get those values passed. Don't know why? Thanks.
On Thu, Aug 20, 2009 at 3:20 PM, Blair <os...@live.com> wrote: > Those variables are MSBuild variables. To reach candle, they need to be > added to one of the DefineConstants property. > > You could try adding this to your $(ROOT)\INSTALLERS\Test.wixproj file > (note, this is untested): > > <PropertyGroup> > > > <DefineConstants>rootdir=$(rootdir);srcrootdir=$(srcrootdir)</DefineConstant > s> > </PropertyGroup> > > -----Original Message----- > From: Sam K [mailto:sam.re...@gmail.com] > Sent: Thursday, August 20, 2009 11:55 AM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Passing Preprocessor variables when using msbuild > > Can anybody please tell me how to pass the preprocessor variables in > msbuild? > I have an include file which has things like > > <?ifndef rootdir ?> > > <?define rootdir = "..\"?> > > <?endif ?> > > <?ifndef srcrootdir ?> > > <?define srcrootdir = "..\"?> > > <?endif ?> > > and I use these in my actual wix files. > > > > I am using msbuild target and I wanted to know how I can pass these > variables? I do this but for some reason I can't get these passed. > > <MSBuild Projects="$(ROOT)\INSTALLERS\Test.wixproj" Properties=" > > Configuration=Release;Platform=x86;rootdir=$(ROOT)\qa\;srcrootdir=$(ROOT)\;" > > > > </MSBuild> > > > > Can somebody please reply? > > Thanks a lot. > > ---------------------------------------------------------------------------- > -- > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users