首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >UWP应用程序旁置- AppInstaller没有安装该应用程序

UWP应用程序旁置- AppInstaller没有安装该应用程序
EN

Stack Overflow用户
提问于 2022-05-31 18:45:13
回答 2查看 127关注 0票数 0

我试图使用.appinstaller来安装UWP应用程序。直到1909年我的笔记本电脑操作系统才开始正常工作。在我们最近于‘22年5月升级到21H2之后,它停止了安装并显示错误:-“:Appinstaller操作失败,错误代码0x80D03002。详细信息:未知错误(0x80d03002)”

如果我运行MSIX文件,它也可以在21H2上安装。

正如AppInstaller XML Issue中所建议的,已经尝试了启动交付优化服务-似乎没有解决这个问题。

下面是AppInstaller的xml代码:-

代码语言:javascript
复制
Below is the xml code for AppInstaller:-

<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
    Uri="http://XXX/TestApp.UWP.appinstaller"
    Version="2.2112.0.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2">
    <MainBundle
        Name="TestUI"
        Version="2.2112.0.0"
        Publisher="CN=Test, OU=GIS, O=&quot;Test Corporation &quot;, L=Fremont, S=California, C=US"
        Uri="http://XXX/TestApp.UWP_2.2112.0.0_Test/TestApp.UWP_2.2112.0.0_x64.msixbundle" />
    <Dependencies>
        <Package
            Name="Microsoft.UI.Xaml.2.4"
            Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
            ProcessorArchitecture="x64"
            Uri="http://XXX/TestApp.UWP_2.2112.0.0_Test/Dependencies/x64/Microsoft.UI.Xaml.2.4.appx"
            Version="2.42007.9001.0" />
        <Package
            Name="Microsoft.NET.Native.Framework.2.2"
            Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
            ProcessorArchitecture="x64"
            Uri="http://XXX/TestApp.UWP_2.2112.0.0_Test/Dependencies/x64/Microsoft.NET.Native.Framework.2.2.appx"
            Version="2.2.29512.0" />
        <Package
            Name="Microsoft.NET.Native.Runtime.2.2"
            Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
            ProcessorArchitecture="x64"
            Uri="http://XXX/TestApp.UWP_2.2112.0.0_Test/Dependencies/x64/Microsoft.NET.Native.Runtime.2.2.appx"
            Version="2.2.28604.0" />
        <Package
            Name="Microsoft.VCLibs.140.00"
            Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
            ProcessorArchitecture="x64"
            Uri="http://XXX/TestApp.UWP_2.2112.0.0_Test/Dependencies/x64/Microsoft.VCLibs.x64.14.00.appx"
            Version="14.0.29231.0" />
    </Dependencies>
    <UpdateSettings>
        <OnLaunch
            HoursBetweenUpdateChecks="0" />
    </UpdateSettings>
</AppInstaller>
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2022-06-03 16:44:52

我终于找到原因了。即使AppInstaller作为网站托管,也无法访问Uri,因此,我没有使用Uri = "http://",而是使用了本地文件路径Uri = "file://"

修正:

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
    Uri="file://XXX/TestApp.UWP.appinstaller"
    Version="2.2112.0.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2">
    <MainBundle
        Name="TestUI"
        Version="2.2112.0.0"
        Publisher="CN=Test, OU=GIS, O=&quot;Test Corporation &quot;, L=Fremont, S=California, C=US"
        Uri="file://XXX/TestApp.UWP_2.2112.0.0_Test/TestApp.UWP_2.2112.0.0_x64.msixbundle" />
    <Dependencies>
        <Package
            Name="Microsoft.UI.Xaml.2.4"
            Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
            ProcessorArchitecture="x64"
            Uri="file://XXX/TestApp.UWP_2.2112.0.0_Test/Dependencies/x64/Microsoft.UI.Xaml.2.4.appx"
            Version="2.42007.9001.0" />
        <Package
            Name="Microsoft.NET.Native.Framework.2.2"
            Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
            ProcessorArchitecture="x64"
            Uri="file://XXX/TestApp.UWP_2.2112.0.0_Test/Dependencies/x64/Microsoft.NET.Native.Framework.2.2.appx"
            Version="2.2.29512.0" />
        <Package
            Name="Microsoft.NET.Native.Runtime.2.2"
            Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
            ProcessorArchitecture="x64"
            Uri="file://XXX/TestApp.UWP_2.2112.0.0_Test/Dependencies/x64/Microsoft.NET.Native.Runtime.2.2.appx"
            Version="2.2.28604.0" />
        <Package
            Name="Microsoft.VCLibs.140.00"
            Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
            ProcessorArchitecture="x64"
            Uri="file://XXX/TestApp.UWP_2.2112.0.0_Test/Dependencies/x64/Microsoft.VCLibs.x64.14.00.appx"
            Version="14.0.29231.0" />
    </Dependencies>
    <UpdateSettings>
        <OnLaunch
            HoursBetweenUpdateChecks="0" />
    </UpdateSettings>
</AppInstaller>
票数 1
EN

Stack Overflow用户

发布于 2022-06-02 09:50:16

由于安全问题,Microsoft暂时禁用了appinstaller协议。有关更多细节,请查看下面的链接。

https://techcommunity.microsoft.com/t5/msix/the-ms-appinstaller-protocol-has-been-disabled/m-p/3038361

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72452758

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档