小编Hea*_*ney的帖子

“解析应用程序包时出错。” 从 Web (MSIX) 打开 Windows 10 .appinstaller 文件时

因此,我尝试使用Windows 10 Creators Update 的直接应用程序安装功能来允许从网络下载打包的现代应用程序。它的主要功能是,它会通过检查 .appinstaller 文件的相同 URL 来自动更新您的应用程序。

https://new-file-explorer.firebaseapp.com/(该页面完全由Visual Studio生成,我没有修改)

问题是,当我单击它时,我只是收到“解析应用程序包时出错”。

如果我手动下载 .appinstaller 文件中引用的 .msixbundle,它将起作用!然而应用程序安装程序本身无法“解析”这个包?

这是最奇怪的部分:如果我使用 Powershell 中的“Add-AppxPackage -Appinstaller”并将其指向 .appinstaller URL,它将完全起作用!

这里的其他答案不适用,因为它们都与在本地服务器上运行它有关(无论如何我都尝试过)。

我认为这与 MIME 类型有关,但我已经按照文档中的说明设置了 MIME 类型,但它仍然不起作用。我已经使用此 URL MIME 类型检查器验证了这一点。我不知道到底是什么原因造成的。

这是.appinstaller 文件

<?xml version="1.0" encoding="utf-8"?>
<AppInstaller Uri="https://new-file-explorer.firebaseapp.com/InstallNFE.appinstaller" Version="1.0.9.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2">
  <MainBundle Name="NewFileExplorer" Version="1.0.9.0" Publisher="CN=david" Uri="https://new-file-explorer.firebaseapp.com/InstallNFE_1.0.9.0_Test/InstallNFE_1.0.9.0_x86_x64.msixbundle" />
  <UpdateSettings>
    <OnLaunch HoursBetweenUpdateChecks="0" />
  </UpdateSettings>
</AppInstaller>
Run Code Online (Sandbox Code Playgroud)

这是.msixbundle 的链接,它似乎无法解析(如您所见,它可以手动下载它!)

visual-studio firebase-hosting windows-10 uwp msix

4
推荐指数
1
解决办法
9377
查看次数

标签 统计

firebase-hosting ×1

msix ×1

uwp ×1

visual-studio ×1

windows-10 ×1