tags:

views:

373

answers:

1

I am using heat.exe to genrate file listing, I need to replace File/@Source="SourceDir" so I am passing -var and directory name , but those variable are defined in my .wxi file How can I include .wxi file in the heat generated wxs file . as this file will be generated each time i make a build.

+1  A: 

Why replace SourceDir?

You can just pass in additional base folders to light with the -b switch and for all references of SourceDir, WiX will look in the base folders you've specified. Makes it easy to move things around between machines and only have to update a parameter in your build system, rather than editing an include file.

sascha