You can use the -dr option to set the DirectoryRef automatically for you (and you probably want to use the -cg option to generate a ComponentGroup for you to use in your Feature as when your components change, they're not going to be installed by your installer if they're not specified in a Feature and you'll be asking us why no doubt) but heat.exe was never designed with integration into automated build systems as a primary concern.
See heat.exe -?. If you don't see the options I mentioned above, update your WiX binaries. Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: Christer Nordvik [mailto:chris...@mobilefootie.com] Sent: 19 June 2009 09:01 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Using output from heat directly in Product.wxs Hi! I am using Heat to harvest files from a website, but how do I include the fragment from heat directly in my Product.wxs? I had to rename the top dir from: <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <Directory ID="myDir"> to: <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Fragment> <DirectoryRef Id="INSTALLLOCATION"> and then include the ComponentGroup1 in my Product.wxs. Then the harvested files are included below the installation dir. But is this the correct way of doing it? I have to write a script that does this modification at the build server and it feels a little wrong... Heat parameters: heat.exe dir myWebFolder -gg -sreg -scom -sfrag -out GeneratedFiles.wxs -Christer ------------------------------------------------------------------------ ------ 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