I use heat to generate a WXS file with Fragments. I used the -var arg to 
replace the path to the files with a preprocessor variable. I can specify 
the variable's value in the command line to candle with the -d argument. 
But, I have a wxi file that I would like to include.

I can transform the output of heat with an XSLT file, and I am successfully 
removing some unwanted files.

But I have not been able to figure out a transform that inserts <?include 
file.wxi ?> inside the Wix element and before the first fragment.

Does anyone have an XSLT example? The end result should be something like:

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <?include defines.wxi ?>
    <Fragment>
        <DirectoryRef Id="DirId">
            <Component Id="cmpDFB0B44999D95218F6BC4457C253DAB1" 
Guid="{08038211-6E9B-4C75-9278-9B8FF1812BED}">
                <File Id="filF161DE2A55DA8301F09DDB1F0B9F185E" 
KeyPath="yes" Source="$(var.MyPath)\myFile.exe" />
            </Component>
...

Any suggestions?

Thanks,
Gary
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to