There's a suppress root directory flag on heat.exe that controls this for you.
Thanks, Navid -----Original Message----- From: jeff00seattle [mailto:jeff_tan...@earthlink.net] Sent: Wednesday, April 28, 2010 3:14 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] heat.exe: Harvest contents of directory and NOT the directory name Hi I have a directory .\foo\ that has contents I want to harvest. However, in the end, my INSTALLDIR within Harvester.wxs contains directory foo and then its components, and I want only want is components. In other words, my current harvest is this... <Fragment> <DirectoryRef Id="INSTALLDIR"> <Directory Id="dir###..." Name="foo"> <Component Id="cmp###..." Guid="GUID"> <File Id="fil###..." KeyPath="yes" Source="$(var.SourceDir)\README.txt" /> </Component> But I want my harvest instead to be without <Directory Id="dir###..." Name="foo">: <Fragment> <DirectoryRef Id="INSTALLDIR"> <Component Id="cmp###..." Guid="GUID"> <File Id="fil###..." KeyPath="yes" Source="$(var.SourceDir)\README.txt" /> </Component> This is my harvest setup: heat.exe dir foo -gg -g1 -cg $(var.ComponentGroupName) -dr INSTALLDIR -nologo -sfrag -ke -out Harvester.wxs -var var.SourceDir candle.exe -nologo Harvester.wxs -out Harvester.wixobj -dSourceDir=foo -dComponentGroupName=foo_group -arch x86 light.exe -nologo Harvester.wixobj -out foo.msi -pdbout foo.wixpdb ----- Thanks Jeff in Seattle -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/heat-exe-Harvest-contents-of-directory-and-NOT-the-directory-name-tp4977248p4977248.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users