加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

WIX:Package元素的Platform属性是否真的被弃用?

发布时间:2020-12-14 04:33:42 所属栏目:Windows 来源:网络整理
导读:如果是这样,指定x64构建的适当方式是什么? 在我的.wxs文件中,我有这样的东西: Package Description ="$(var.pkgDescription)" Comments ='Produced: Sun 17 April 2011' Manufacturer ="Mfr name here" InstallerVersion ='200' Platform ='$(var.Platform
如果是这样,指定x64构建的适当方式是什么?

在我的.wxs文件中,我有这样的东西:

<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.这似乎很有效

但是,在WIX3文档中,它表示不推荐使用Platform属性和Platforms属性.它没有描述什么替代它们,或开发人员应该使用什么代替这些.

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

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属性,它会成功建立,但是由于文档的原因,我不知道这是否正确.

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

Package / @ Platform不被弃用 – 请在SourceForge中打开一个错误,以便可以修复该文档.但没有必要:见 http://www.joyofsetup.com/2010/05/14/working-hard-or-hardly-working/.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读