【发布时间】:2016-08-24 15:34:26
【问题描述】:
我正在使用这个加热命令
heat dir "$(SolutionDir)scr\A\A.WindowsService\bin\$(Configuration)" -dr ConfigurationUtilityDir -gg -g1 -cg ConfigurationUtilityComponents -sf -spdb -xo -srd -out "$(SolutionDir)scr\Installers\A\AInstallerHeat\ConfigurationUtilityHeat.wxs" -dPath="C:\..\A\A.WindowsService\bin\Release -var var.Path
但似乎 heat 忽略了 'Path' 变量和 -var 参数的声明。所以它会生成一个这样的文件
<Component Id="cmpBBD96B447087B68960C29FA13E08DCA2" Directory="dir5624AEB1C4C7EFEEFB6B6016AAE1AD54" Guid="B71EF27A-2812-4698-BDA9-8ABC8C44C8F7">
<File Id="fil8D456C6334925F4FE3A7B8A8A5D76ABB" KeyPath="yes" Source="SourceDir\bin\A.dll" />
</Component>
显然,它无法创建最终的 .msi 包,因为它在 'Source' 属性中声明的路径中找不到任何文件。
如何将“路径”变量值用作“源”属性?
谢谢
编辑:我也尝试使用 -b C:\..\A\A.WindowsService\bin\Release 而不是定义自定义变量,但它仍会在“SourceDir..”目录中查找文件
【问题讨论】:
标签: wix windows-installer heat