Harvesting files with heat.exe

When your project contains many files to install, it can be a chore to create File and Component elements for all of them. Instead, WiX can do it for you. One of the tools that ships with the toolset is called heat.exe. You can find it in the bin directory of the WiX program files. Navigate to WiX's bin directory from a command prompt and type heat.exe -? to see information about its usage.

To make things easy, consider adding the path to the WiX bin directory to your computer's PATH environment variable so that you won't have to reference the full path to the executable each time you use it. You can do this on Windows 7 by right-clicking on My Computer in your Start Menu and then going to Properties | Advanced system ...

Get WiX 3.6: A Developer's Guide to Windows Installer XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.