IMO, you should do this as a build step before packaging with WiX. It's trivial to accomplish with MSBuild and the MSBuild Community Tasks.
Chris On Mon, Jun 15, 2009 at 8:26 PM, Pankaj Agrawal (Infosys Technologies Ltd) < v-pa...@microsoft.com> wrote: > Just to correct my query I don't want to replce tokens in wxs but need to > replace tokens in a text file which is installed by MSI using wxs. > > Thanks, > Pankaj > > -----Original Message----- > From: Mike Rerick [mailto:mrer...@iwsinc.com] > Sent: Monday, June 15, 2009 3:11 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Token Replacements in WXS > > You could also use an environmental variable and set it before running the > installer. > > $(env.ServerVersion) > > *Mike Rerick* > *Sr. Software Engineer* > > [image: Google Docs] <http://www.iwsinc.com>*ImageWare Systems, Inc.* > 9200 S.E. Sunnybrook Blvd., Suite 170 > Clackamas, OR 97015 > > Office: (503) 353-8068 Fax: (503) 353-8065 > > > > On Mon, Jun 15, 2009 at 3:01 PM, Brian Rogers <rogers.br...@gmail.com > >wrote: > > > Hey Pankaj, > > > > Why would you use WiX and the preprocessor for this? Why not just use a > > text > > replacer? Do you need this to be automated? You could add "var." in the > > toke > > and then yes, you could use the preprocessor. > > > > $(var.Serverversion) > > > > and then pass the value to candle.exe on the command line > > "-dServerversion=dldl". > > > > Hope that helps, > > > > Brian Rogers > > "Intelligence removes complexity." - Me > > http://icumove.spaces.live.com > > > > On Mon, Jun 15, 2009 at 2:42 PM, Pankaj Agrawal (Infosys Technologies > Ltd) > > < > > v-pa...@microsoft.com> wrote: > > > > > Hi, > > > > > > We need to do token replacement in the whole file using WIX and I was > > > wondering whether this feature is available in wxs or not. > > > > > > For e.g. > > > > > > I have a text file which has $(Serverersion) at 10 places and I want to > > > replace all the values in the text file using token replacement feature > > if > > > any provided by WXS. > > > > > > Any help would be greatly appreciated. > > > > > > Thanks, > > > Pankaj > > > > > > > > > ------------------------------------------------------------------------------ > > > Crystal Reports - New Free Runtime and 30 Day Trial > > > Check out the new simplified licensing option that enables unlimited > > > royalty-free distribution of the report engine for externally facing > > > server and web deployment. > > > http://p.sf.net/sfu/businessobjects > > > _______________________________________________ > > > WiX-users mailing list > > > WiX-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > > ------------------------------------------------------------------------------ > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > The information contained in this transmission contains potentially > > privileged, export controlled and/or confidential information of > Imageware > > Systems, Inc. or its customers or partners. It is intended only to be > read > > by the person(s) named above and for no other purpose. You are hereby > > notified that any dissemination, distribution, duplication of this > > communication or use of its contents for any purpose not authorized > > expressly by Imageware Systems, Inc. is strictly prohibited and could > lead > > to both civil and/or criminal penalties. If you are not the intended > > recipient, you are prohibited to review the contents herein and please > > contact the sender by reply e-mail and destroy all copies of the original > > message. To reply to our e-mail administrator directly, please send an > > e-mail to emailad...@iwsinc.com > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users