小编Lei*_*ade的帖子

使用WiX预处理器$ var语法访问项目的TargetDir

我刚刚开始使用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.

我需要做些什么才能让它发挥作用?

wix wix3 visual-studio votive

10
推荐指数
1
解决办法
3745
查看次数

标签 统计

visual-studio ×1

votive ×1

wix ×1

wix3 ×1