A second way is to use the Add a Reference screen to reference the C# project in your WiX project and then use the
.TargetDir) preprocessor variable to point to the referenced project's output directory:
- Custom actions
- from WiX 3.6: A Developer's Guide to Windows Installer XML
- Publisher: Packt Publishing
- Released: December 2012
This options applies if you have integrated wix into your IDE project.
Share this highlighthttp://www.safaribooksonline.com/a/wix-36-a/12208047/