我刚刚开始使用WiX.
我在现有的C项目中添加了一个WiX Votive项目.
要自动为二进制文件选择正确的源文件夹,请使用以下内容:
<Directory Id="INSTALLLOCATION" Name="Trapeze Capture For Objective" FileSource="$(var.CaptureForObjective.TargetDir)">
Run Code Online (Sandbox Code Playgroud)
这会导致以下错误:
1>C:\code\CaptureForObjective\Installer\Product.wxs(10,0): error CNDL0150: Undefined preprocessor variable '$(var.CaptureForObjective.TargetDir)'.
C项目称为CaptureForObjective,WiX项目称为Installer.
我需要做些什么才能让它发挥作用?