WIX:Package 元素的 Platform 属性真的被弃用了吗? [英] WIX: is the Platform attribute of the Package element truly deprecated?

查看:25
本文介绍了WIX:Package 元素的 Platform 属性真的被弃用了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果是这样,指定 x64 构建的合适方法是什么?

If so, what is the appropriate way to specify an x64 build?

在我的 .wxs 文件中,我有这样的内容:

In my .wxs file, I have something like this:

<Package Description      ="$(var.pkgDescription)"
         Comments         ='Produced: Sun 17 April 2011'
         Manufacturer     ="Mfr name here"
         InstallerVersion ='200'
         Platform         ='$(var.Platform)'
         Compressed       ='yes' />

...我在candle.exe 命令行上使用-dPlatform=x64.这似乎有效.

...where I use -dPlatform=x64 on the candle.exe command line. This seems to work.

但是,在 WIX3 文档中,它声明 Platform 属性和 Platforms 属性都已弃用.它没有描述什么可以替代它们,或者开发人员应该使用什么来代替它们.

But, in the WIX3 documentation, it states that both the Platform attribute and the Platforms attribute are deprecated. It does not describe what replaces them, or what developers should use in place of these.

当我从上述元素中删除 Platform 属性并运行构建时,我收到 ICE80 错误:

When I remove the Platform attribute from the above element, and run the build, I get an ICE80 error:

Product.wxs(285) : error LGHT0204 : ICE80: 此包包含 64 位组件C.Textfiles",但模板摘要属性不包含 Intel64 或 x64.

Product.wxs(285) : error LGHT0204 : ICE80: This package contains 64 bit component 'C.Textfiles' but the Template Summary Property does not contain Intel64 or x64.

如果我使用 Platform 属性,它会成功构建,但由于文档的原因,我不确定这是否正确.

It builds successfully if I use the Platform attribute, but because of the documentation, I am unsure if this is correct.

构建 x64 MSI 的正确方法是什么??

What is the proper way to build an x64 MSI??

推荐答案

Package/@Platform 未弃用——请在 SourceForge 上打开一个错误,以便修复文档.但这不是必需的:请参阅 http://www.joyofsetup.com/2010/05/14/working-hard-or-hardly-working/.

Package/@Platform isn't deprecated -- please open a bug on SourceForge so the doc can be fixed. But it's not necessary: See http://www.joyofsetup.com/2010/05/14/working-hard-or-hardly-working/.

这篇关于WIX:Package 元素的 Platform 属性真的被弃用了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆