How can I exclude files from being harvested with heat (WiX 3.5)?

Marcus picture Marcus · Sep 17, 2010 · Viewed 10.3k times · Source

I would like to harvest a folder with a lot of files by using heat.exe. But instead of harvesting all files, I would like to exclude specific file extensions like "*.txt" or something like that. How can I do this?

Answer

Yan Sklyarenko picture Yan Sklyarenko · Sep 17, 2010

I think the only option for now is to harvest the entire folder and apply a transform to the resulting .wxs file (see -t:<xsl> switch) to exclude what is not required (txt files in your case). However, I didn't try the 3.5 version of heat (judging based on the 3.0), but I don't think there are changes in this area.