我试图使用.appinstaller来安装UWP应用程序。直到1909年我的笔记本电脑操作系统才开始正常工作。在我们最近于‘22年5月升级到21H2之后,它停止了安装并显示错误:-“:Appinstaller操作失败,错误代码0x80D03002。详细信息:未知错误(0x80d03002)”
如果我运行MSIX文件,它也可以在21H2上安装。
正如AppInstaller XML Issue中所建议的,已经尝试了启动交付优化服务-似乎没有解决这个问题。
下面是AppInstaller的xml代码:-
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="Test Corporation ", 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>发布于 2022-06-03 16:44:52
我终于找到原因了。即使AppInstaller作为网站托管,也无法访问Uri,因此,我没有使用Uri = "http://",而是使用了本地文件路径Uri = "file://"。
修正:
<?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="Test Corporation ", 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>发布于 2022-06-02 09:50:16
由于安全问题,Microsoft暂时禁用了appinstaller协议。有关更多细节,请查看下面的链接。
https://stackoverflow.com/questions/72452758
复制相似问题