There is a reason for the lack of this feature in the WiX toolset.  Doing so is 
one of the best ways to totally hose the Component Rules and make it impossible 
to update/patch your product.  Also, the conventional wisdom out there suggests 
one file per Component.

There is much discussion about this in the archives.

Also, why did you use a comment to implement this Preprocessor extension?  Why 
not use the new Preprocesor function that Peter created a while ago 
(http://blogs.msdn.com/pmarcu/archive/2007/04/27/wix-functional-preprocessing.aspx).


Finally, if you send Bob a beer, maybe he will tell you his horror story of 
trying to update a product built using one of those wildcard population 
features.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Buc Rogers
Sent: Saturday, May 12, 2007 3:12 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Wildcard preprocessor for wix

A feature that I like in Installshield and Wise which Wix doesn't directly 
support is wildcard population of directories.

Here is source for a wix preprocessor we use as part of our build process (run 
just prior to candle):

http://download.yousendit.com/706B8A2A4335438C

usage is as follows:

                WixWildCardPreProcessor.exe MsiContentBaseDir wixInFile 
wixOutFile


Example syntax (pulls all files in relative dir "x" into wix structure):

          <Directory Id="dirX" Name="X">
            <Component Id="compX" Guid="{97CB7E81-963C-41ad-8D5A-DF1DE380AB4A}">
              <!-- [WILDCARD Source='x'] -->
            </Component>
          </Directory>


- - - - - - - - - - - - - - - - - - - - - - - - -
Buc Rogers
Director of Product Operations
InRule Technology, Inc.
"Thinking in Rules"
www.inrule.com
<blocked::http://www.inrule.com/> - - - - - - - - - - - - - - - - - - - - - - - 
- -


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to