簡體   English   中英

一個32位MSI中的Wix 32和64位組件

[英]Wix 32 and 64 Bit Components within one 32 Bit MSI

我嘗試了幾個小時來創建一個32位安裝程序,該程序集成了exe文件的32位和64位版本。 但是似乎64位exe從未集成到安裝程序中。

是否可以在一個安裝程序中集成兩個版本? 如果兩者都使用相同的路徑和所有內容。 我只希望根據條件安裝32位或64位版本。

wix文件如下所示:

<?xml version="1.0" encoding="UTF-8"?>

<Product Id="0E69C1BC-D9CD-4886-83D6-6240AEDC4D4F" Name="!(loc.ApplicationName)" Language="!(loc.Language)" Version="$(var.VersionNumber)" Manufacturer="!(loc.ManufacturerFullName)" UpgradeCode="$(var.UpgradeCode)">
   …

  <Property Id="OFFICEVERSION">
    <RegistrySearch Id="OfficeVersion"
                    Root="HKCR"
                    Key="Outlook.Application\CurVer"
                  Type="raw" />
  </Property>

<Property Id="Office64" Value="no"/>

…

<Fragment>
    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">

      <!-- 32-Bit -->
      <Component Id="ml.32" Guid="{8739FAD5-28ED-4F19-B25A-8CC05BA87174}"  >
        <File Source="$(var.ProjectDir)..\build\x86\ml.exe" Id="mlExe" KeyPath="yes"/>
         <Condition><![CDATA[NOT Office64]]></Condition>
      </Component>

      <!-- 64-Bit -->
      <Component Id="ml.64" Guid="{8B6345EE-689D-4E13-882D-CF5B4F97252A}" >
        <File Source="$(var.ProjectDir)..\build\x64\ml.exe" Id="mlExe64" KeyPath="yes" />
       <Condition><![CDATA[Office64]]></Condition>
      </Component>

      …

    </ComponentGroup>
</Fragment>

有人對此有想法嗎?

32位程序包不支持64位組件。 要安裝64位組件,必須使用64位軟件包

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM