2

I have a pre-build event for a wix installer, it looks like this:

"%WIX%\bin\heat.exe" dir %SystemDrive%\Staging -dr INSTALLFOLDER -cg Components -var "var.Project.TargetDir" -ag -out "$(SolutionDir)Project.Installer\Installer.Heat.wxs"

It takes all the files in C:\Staging and makes a .wxs for the components which is great. However, when I run my installer, it drops all of the files to C:\Program Files(x86)\MyInstallFolder\Staging"

I need to harvest all the files in the staging directory, but I would like to output them in just the INSTALLFOLDER (no staging directory). How do I achieve this using heat?

user3689167
  • 863
  • 1
  • 14
  • 28

1 Answers1

6

Try -srd switch of the Heat command line. It suppresses harvesting root directory as an element.

Yan Sklyarenko
  • 31,557
  • 24
  • 104
  • 139