0

我创建了我的 UWP 应用程序包,但当我尝试安装时 ms-appinstaller 显示错误。

图片

“解析应用程序包时出错。”,所有文件都可以通过浏览器下载

ms-appinstaller 文件:

<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
    Uri="http://uwplauncher.politcubes.ru/PolitCubes_x64.appinstaller"
    Version="1.0.0.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2">
    <MainPackage
        Name="60c86cc0-5a17-46a6-a7f9-1c6eec38e089"
        Version="1.0.0.0"
        Publisher="CN=redfo"
        Uri="C:/Users/redfo/nginx-1.19.2/html/PolitCubes_1.0.0.0_x64_Test/PolitCubes_1.0.0.0_x64.msix"
        ProcessorArchitecture="x64" />
    <Dependencies>
        <Package
            Name="Microsoft.NET.Native.Framework.2.2"
            Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
            Version="2.2.27912.0"
            ProcessorArchitecture="x64"
            Uri="http://uwplauncher.politcubes.ru/PolitCubes_1.0.0.0_x64_Test/Dependencies/x64/Microsoft.NET.Native.Framework.2.2.appx" />
        <Package
            Name="Microsoft.NET.Native.Runtime.2.2"
            Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
            Version="2.2.28604.0"
            ProcessorArchitecture="x64"
            Uri="http://uwplauncher.politcubes.ru/PolitCubes_1.0.0.0_x64_Test/Dependencies/x64/Microsoft.NET.Native.Runtime.2.2.appx" />
        <Package
            Name="Microsoft.VCLibs.140.00"
            Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
            Version="14.0.27810.0"
            ProcessorArchitecture="x64"
            Uri="http://uwplauncher.politcubes.ru/PolitCubes_1.0.0.0_x64_Test/Dependencies/x64/Microsoft.VCLibs.x64.14.00.appx" />
    </Dependencies>
    <UpdateSettings>
        <OnLaunch
            HoursBetweenUpdateChecks="0" />
    </UpdateSettings>
</AppInstaller>

如果我运行 .msix,那么它会成功安装我的应用程序。

(右侧窗口显示了我的应用程序已经安装的内容,因为我在提问之前使用 .msix 安装了它)

更新1:

我设置了哑剧类型,但这不起作用

4

0 回答 0