我想为我的应用程序创建一个安装程序 (msi)。我想添加一个包含大量文件的文件夹。所以我使用 heat 为文件夹创建 wxs 文件。创建的 wxs 文件如下所示:
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<DirectoryRef Id="INSTALLDIR">
<Directory Id="dirD443000E4EC0AE53948090C1CD372519" Name="www">
<Component Id="cmp258C40B6C01189153117075B9889DA7C" Guid="{23189859-29AE-46E6-A940-0B2307344910}">
<File Id="fil0DE52257C6EF99D33B0974915A17454E" KeyPath="yes" Source="$(var.WwwPath)\3rdpartylicenses.txt" />
</Component>
<Component Id="cmp85367E8DB342884A004620F1E4153AE4" Guid="{00EBB07A-6178-4072-B47C-2D9130CB96A7}">
<File Id="filB62696889B5411543CB3DFD6E2A1270D" KeyPath="yes" Source="$(var.WwwPath)\color.c7a33805ffda0d32bd2a.png" />
</Component>
...
...
当我运行我的命令灯时,我收到了很多这样的错误(每个文件一个):
error LGHT0204 : ICE80: This 32BitComponent cmp258C40B6C01189153117075B9889DA7C uses 64BitDirectory dirD443000E4EC0AE53948090C1CD372519
但是创建的 msi 似乎按预期工作。但如果可以的话,我想了解并消除该错误。
任何的想法 ?
谢谢
最佳答案
我试过在@Brian 的评论中添加组件属性 Win64='yes' ,但它在构建过程中被删除了。 This answer helped me solve this issue.
关于维克斯 : error LGHT0204 : ICE80: This 32BitComponent xxx uses 64BitDirectory yyy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49280526/