gpt4 book ai didi

visual-studio-2010 - 在 WiX 安装程序脚本中使用变量时如何避免 'Win64' 属性无效?

转载 作者:行者123 更新时间:2023-12-01 12:57:51 25 4
gpt4 key购买 nike

我有一个 WiX 安装程序,我正在关注 wix-tricks-and-tips

我的变量都工作正常,但由于这个原因我收到了 100 条警告:

<Component Id="C.Content.2011.1.414" DiskId="1" Guid="MYGUID" Win64="$(var.Win64)" KeyPath="yes">

我收到警告:

Warning 1 The 'Win64' attribute is invalid - The value '$(var.Win64)' is invalid according to its datatype 'http://schemas.microsoft.com/wix/2006/wi:YesNoType' - The '$' character, hexadecimal value 0x24, cannot be included in a name.

还有:

<?xml version="1.0" encoding="utf-8"?>
<Include>
<?if $(var.Platform) = x64 ?>
<?define Win64 = "yes" ?>
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?else ?>
<?define Win64 = "no" ?>
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?endif ?>
</Include>

显然 Win64 是/否...我如何避免此警告?

谢谢

最佳答案

答案是完全删除 Win64 变量。一旦您正确设置了平台构建目标,WiX 就可以搞定。

关于visual-studio-2010 - 在 WiX 安装程序脚本中使用变量时如何避免 'Win64' 属性无效?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8684692/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com