wix
  • windows-installer
  • 2011-04-17 25 views 10 likes 
    10

    如果是這樣,指定x64構建的適當方法是什麼?WIX:是否確實棄用了Package元素的Platform屬性?

    在我.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屬性都被棄用。它沒有描述什麼替換它們,或者開發者應該用什麼替代它們。

    enter image description here

    當我刪除從上述元素的平臺屬性,並運行構建,我得到一個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的正確方法是什麼?

    回答

    8

    Package/@ Platform不被棄用 - 請在SourceForge上打開一個錯誤,以便修復該文檔。但這不是必需的:請參閱http://www.joyofsetup.com/2010/05/14/working-hard-or-hardly-working/

    4

    參閱文件(WiX.CHM)包含在維克斯分佈,而不是Sourceforge的文檔 - 你會看到英特爾Intel64位值已被棄用。有效值現在,和IA64

    +0

    謝謝你,樂於助人。 – Cheeso 2011-04-18 02:43:11

    相關問題