views:

310

answers:

1

I have just started using WiX for the first time.

I added a WiX Votive project to my existing C project.

To automatically select the correct source folder for the binaries add used the following:

<Directory Id="INSTALLLOCATION" Name="Trapeze Capture For Objective" FileSource="$(var.CaptureForObjective.TargetDir)">

That results in the following error:

1>C:\code\CaptureForObjective\Installer\Product.wxs(10,0): error CNDL0150: Undefined preprocessor variable '$(var.CaptureForObjective.TargetDir)'
.

The C project is called CaptureForObjective, and the WiX project is called Installer.

What do I need to do to get this to work?

A: 

In order for the variables to become defined, you must right-click your wix project and add a project reference to your C project . See also this blog post.

Wim Coenen