我想在Visual Studio中向我的wixproj添加一个HeatDirecotry任务,但是我需要目录属性-源路径-将是一个变量-一个预处理器变量,这样我就可以动态地提供它。
有谁能告诉我怎么做到的吗?
谢谢!
发布于 2013-03-29 18:15:45
尝试执行以下操作卸载项目,然后在.wixproj文件中添加以下代码
<Target Name="BeforeBuild">
<HeatDirectory DirectoryRefId="INSTALLFOLDER"
OutputFile="Source.wxs"
Directory="C:\Users\aaa\Desktop\ComponentsFiles"
SuppressRootDirectory="true"
ToolPath="$(WixToolPath)" AutogenerateGuids="true"
ComponentGroupName="SourceComponentGroup"
PreprocessorVariable="var.SourcePath">
</HeatDirectory>
</Target>然后重新加载项目。为项目属性SourcePath=C:\Users\aaa\Desktop\ComponentsFiles的buils标记内的预处理器变量添加以下文件
https://stackoverflow.com/questions/15134363
复制相似问题