0

我正在测试 WiX 框架的 MSIX 功能。当我尝试构建时,我收到以下错误:

light.exe(0,0): error LGHT0221: The definition for the 'FgExcludeDarwinFeatures' table's 'Feature_' column is a foreign key relationship to the 'Feature' table's column number 1. 两列定义的模块化类型不同:一是列,另一个是无。更改其中一种模块化类型以使其匹配。

我的设置:

遵循以下安装说明:https ://www.firegiant.com/wix/wep-documentation/getting-started

在 Visual Studio 2019 中创建了一个默认的 wix 设置项目。包括 FgMsixExtension.wixext.dll,包括 Wix 元素上的 fgmsix.xsd 属性。

我正在运行工具集 v3.11.2.4516(最新)。扩展包 v3.11.476 - 2020-12-22(最新)

项目在没有 MSIX 行的情况下编译良好,并且包含 FgMsixExtension.wixext

有什么我想念的想法吗?

还有人有我也可以比较的有效的 WiX msix 示例吗?

以防万一,这里是一个来自 wix 模板的默认设置项目的快速编辑:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:fga="http://www.firegiant.com/schemas/v3/wxs/fgmsix.xsd">
    <Product Id="*" Name="SetupProject3" Language="1033" Version="1.0.0.0" Manufacturer="test1" UpgradeCode="77c4b832-ed73-4ba2-825c-7eee7837a8f4">
        <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

    <fga:Msix Id="testy" Publisher="CN=test1" Target="desktop" />
    <!--<fga:Application Id="MyApp" ExecutableFile="prodFile" />-->
    
        <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
        <Media Id="1" Cabinet="test.cab" EmbedCab="yes" /> 
    
        <Feature Id="ProductFeature" Title="SetupProject3" Level="1">
            <ComponentGroupRef Id="ProductComponents" />
        </Feature>

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="SetupProject3" />
      </Directory>
    </Directory>

    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
      <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
      <Component Id="ProductComponent">
        <File Id="prodFile" Source="C:\Program Files (x86)\WiX Toolset v3.11\bin\FireGiant.LicensingTool.exe" />
      </Component>
    </ComponentGroup>
    </Product>
</Wix>

4

1 回答 1

0

刚刚完成与 FireGiant 支持的对话。这是由于一个错误:

开发团队在 v3.11.479 中发布了修复程序。这应该可以解决您面临的问题。

如果您有任何其他问题或问题,请告诉我们。

快乐的包装!

-- 火巨人支持

v3.11.479 于 2021 年 1 月 15 日发布

于 2021-01-18T19:27:31.827 回答