I'm using heat in a wix installer. At first I tried it with no properties and it worked like a charm. I added the heat command to the pre-build event and added the sourceDir declaration to the linker. Now I would like to pass properties to the wix in order to harvest different folders. The properties are passed just fine to the wxs file, e.g. Version="$(var.PRODUCTVERSION)", but it cannot be used in the pre-build event or in the linker params, e.g. "%wix%\bin\heat.exe" dir "$(var.FOLDER)\work\" -cg Files -dr INSTALLFOLDER -gg -scom -sreg -sfrag -srd -out "FilesHeat.wxs"
.
Any ideas??