我正在为使用 Wix 的产品编写安装程序包,整个内容都在 x86 中,但现在我需要向注册表的 x64 部分添加一个密钥。我环顾四周,发现了这个堆栈答案,我认为它可以解决我的问题。但是我收到一个 ICE80 错误(不是警告),它告诉我我基本上需要将我的 Package Platform 属性更改为 x64。
然而,我宁愿避免这种情况,因为正如我所提到的,它只是一个需要在 x64 中的注册表项。
所以我的问题是:是否有另一种方法来解决 ICE80 错误,或者我是否需要构建两个 msi 包,一个用于 x86,一个用于 x64。
这是我的一些代码,以进一步说明我正在尝试做的事情:
<Component Id="Foo" Guid="{GUID}" Win64="yes">
<RegistryKey Root="HKLM" Key="Software\Microsoft\Windows NT\CurrentVersion\Terminal Server\Compatibility\IniFiles">
<RegistryValue Type="integer" Name="Hello" Value="1"/>
</RegistryKey>
<Condition><![CDATA[VersionNT64]]></Condition>
</Component>
<Component Id="Bar" Guid="{GUID}">
<RegistryKey Root="HKLM" Key="Software\Microsoft\Windows NT\CurrentVersion\Terminal Server\Compatibility\IniFiles">
<RegistryValue Type="integer" Name="Hello" Value="1"/>
</RegistryKey>
</Component>
任何帮助表示赞赏!