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 by right-clicking on My Computer in your Start Menu and then going to Properties | Advanced | Environment Variables. From there, you can add the WiX bin path, C:\Program
Files\Windows
Installer
XML
v3\bin
, to PATH by finding PATH in the list of System variables and clicking Edit.
Note
Note that WiX, during its installation, adds an environment variable called...