VS2015 设置自定义操作不是 运行

VS2015Setup CustomAction not running

我有一个单独的 MSI 到 运行 devenv /setup 作为我的安装包的一部分,但是这个包总是失败。

WXS 看起来像这样,我是不是漏掉了什么:

<Product Id="*" Name="$(var.Prep_ProductName)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="fdd723a3-5072-437b-a0c4-88cca6173fc7">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

    <MajorUpgrade AllowDowngrades="yes" />

    <PropertyRef Id="VS2015DEVENV" />
    <CustomActionRef Id="VS2015Setup" />
    <UIRef Id="WixUI_ErrorProgressText" />

    <InstallExecuteSequence>
      <Custom Action="VS2015Setup" Before="InstallFinalize">
        <![CDATA[VS2015DEVENV]]>
      </Custom>
    </InstallExecuteSequence>

这很可能会失败,因为您无法 运行 递归 MSI 安装。您不能在 MSI 的执行序列中使用自定义操作来安装另一个 MSI-based 安装程序。这就是为什么(例如)存在安装要求的先决条件 setup.exe 程序的原因。在这种情况下,您应该做一个 WiX 捆绑包并单独安装它们。

这里的问题是捆绑包没有组件表,这导致安装程序出现灾难性故障。这永远不会奏效。