尝试从 HTTPS URI 安装 MSIXBundle 文件时,我的 AppInstaller 文件出现了一个恼人的问题:
App installation failed with error message: error 0x8007000D: Opening the package from location {package_name}.dev.msixbundle failed. (0x8007000d)
AppInstaller 文件如下所示:
<?xml version="1.0" encoding="utf-8"?>
<AppInstaller Uri="https://{domain}/{package_name}.dev.appinstaller" Version="1.0.0.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2018">
<MainBundle Name="{package_name}" Version="0.6.220.0" Publisher="CN={publisher}" Uri="https://{domain}/{package_name}.dev.msixbundle" />
<UpdateSettings>
<OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="true" />
</UpdateSettings>
</AppInstaller>
如果我在本地下载 AppInstaller 和 MSIXBundle 文件并将 HTTPS 协议更改为 AppInstaller 文件中的 FILE:///,那么它可以正常工作。我可以将文件中的 AppInstaller Uri 保留为 FILE:/// 并将 MainBundle Uri 设置为 HTTPS,然后它也会失败。
我注意到这仅在 Windows 10 的最新 2 版本(即 2004 和 20H2)上开始发生。如果我重新启动我的电脑,那么 HTTPS 协议可以正常工作,我可以通过引用托管的 AppInstaller 文件来安装包。但是当我更新 AppInstaller 以指示该软件包的新版本已发布时,我在更新过程中再次收到上述错误。我已经完全卸载了软件包并尝试再次安装它,我也收到错误消息。
我一直无法找到解决此问题的可靠解决方案,因此我希望如果 AppInstaller 在最新版本的 Windows 10 上出现太多错误,那么一些聪明的人可能能够提供帮助或至少为我指明替代路线.