I would like to be able to dynamically add custom tables to my WiX source file. I have a variety of MSIs that all need these custom tables and I would like to catch the WiX compilation phase right before it expands all the variables values and insert these tables. For example, if I detect a certain preprocessor variable, then I will now to add these custom tables to the WiX source file. My tables also have preprocessor information like the following:
<CustomTable Id="MyTable"> <Column Id="Property_" Type="string" PrimaryKey="yes" /> <?foreach path in in $(var.paths) ?> <Row> <Data Column="Property_">$(var.path)</Data> </Row> <?endforeach?> </CustomTable> So if I detect the paths variable, I want to insert this text into the source right before WiX compiles it. I tried overriding the PreprocessDocument method, but the XmlDocument passed to it seems to have already been processed. Plus I can see the outerxml code that had my defines. Any thoughts or suggestions? -- View this message in context: http://n2.nabble.com/Dynamically-Inserting-Custom-Tables-Before-WiX-Performs-Preprocessing-tp2427331p2427331.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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