I have a scenario where I have a fragment I want to repeat numerous times with 
just a few parameters changed (for differences in names, GUIDs, etc). I don't 
think WiX provides a template-like facility so I was wondering how people 
manage similar scenarios.

Right now I'm debating whether I should use wxi include files into wxs source 
files and have one wxs source file per template instance:

<!-- ServiceA.wxs -->
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <?define ServiceName=ServiceA?>
  <!-other parameters -->
  <?include Service.wxi?>
</Wix>

It would be nice to specify all my service in a single file, something like:

<Services>
  <Service Name="ServiceA">
    <!-- other parameters as attributes or elements -->
  </Service>
  <Service Name="ServiceB">...</Service>
</Services>

I could then build a tool to convert that file into WiX source. Building the 
tool would not be too complex but I'm already starting to see other similar 
scenarios and building lots of similar but different template-engine-like tools 
sounds like a lot of work...

Does anybody else do anything similar to this? If so, how do you manage your 
template instances?

Edwin G. Castro
Software Developer - Staff
Electronic Banking Services
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com<http://www.fiserv.com/>
P Please consider the environment before printing this e-mail

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to