【发布时间】:2016-12-15 16:47:01
【问题描述】:
我正在从 VS2015 创建 Wix CustomAction,正如这里给出的那样。 http://www.codeproject.com/Articles/132918/Creating-Custom-Action-for-WIX-Written-in-Managed?fid=1599130&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Quick&spc=Relaxed&select=4131367&fr=1#xx0xx
我已安装 WIX 安装程序并能够访问 Microsoft.Deployment.WindowsInstaller.dll 库。
但是当我尝试将 WixCATargetsPath 添加到项目文件的 PropertyGroup 部分时,它说它具有无效的子元素。我正在按照上面链接中给出的说明进行操作。
<WixCATargetsPath Condition=" '$(WixCATargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.0\Wix.CA.targets</WixCATargetsPath>
大家有什么想法。
谢谢
【问题讨论】:
-
请发布您的项目文件,看看属性是否放置正确
-
您面临@Ritha 的什么错误消息?我在下面发布了一个答案,可以帮助我解决这个问题。也许它也可以帮助其他人。