Jim, Works a charm! I saw some examples like that but confused them with $ (loc.PACKAGE_ROOT). regards, James
On Feb 4, 2008, at 12:25 PM, Jim Williams wrote: > I think you need to code it as: > > <Text SourceFile="$(var.PACKAGE_ROOT)\License.rtf" /> > > Jim > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of James > Burgess > Sent: Monday, February 04, 2008 12:16 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Substituting values with Candle > > Hi, > I'd like to use an rtf file in my installer and share that rtf > file > with many msi building projects. So to achieve that instead of copy > the > rtf to each of the project directories I'd like to so something like > > <Control Id="AgreementText" Type="ScrollableText" ... > <Text SourceFile="$PACKAGE_ROOT\License.rtf" /> > </Control> > > And then run candle with something like candle > -dPACKAGE_ROOT="c:\package\resource" ui.wxs > > But this doesn't work as PACKAGE_ROOT doesn't get replaced. Is there > anyway to pass in this variable for substitution to candle? > > cheers, > James > > > ---------------------------------------------------------------------- > -- > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users