【发布时间】:2021-03-16 23:08:24
【问题描述】:
我一直在讨论这个问题的其他线程,但似乎没有什么能解决我的问题。无论我做什么,我的 .appinstaller 都不起作用。我不断收到:解析应用程序包时出错。
首先让我说我可以使用直接 URL 访问 .appinstaller 文件和 .appxbundle 文件。此外,我可以使用 .appxbundle 进行安装,并且我有一个签名证书。我也尝试过环回豁免,但这也不起作用。这是我的 .appinstaller 的 XML
<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
Uri="http://dev.xxxxxx.com/MSIXPrototype/HelloWorldPackage.appinstaller"
Version="1.0.7.0" xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2">
<MainBundle
Name="xxxx"
Version="1.0.7.0"
Publisher="CN=my_cert"
Uri="http://dev.xxxxxx.com/MSIXPrototype/HelloWorldPackage_1.0.7.0_x64.appxbundle" />
<UpdateSettings>
<OnLaunch
HoursBetweenUpdateChecks="0" />
</UpdateSettings>
</AppInstaller>
此外,我已将所有 MIME 类型添加到我的 apache httpd.conf 文件中:
AddType application/appinstaller .appinstaller
AddType application/msixbundle .msixbundle
AddType application/appxbundle .appxbundle
AddType application/msix .msix
AddType application/appx .appx
我将不胜感激这方面的任何帮助。谢谢!
【问题讨论】:
-
您可能需要检查您的AppInstaller中提到的Uri dev.xxxxxx.com/MSIXPrototype/HelloWorldPackage.appinstaller和dev.xxxxxx.com/MSIXPrototype/…是否可以访问。
-
重启电脑后问题解决了吗?如果问题没有解决,最好试试看.appinstaller(.appinstaller位于本地磁盘)是否可以用本地uri安装应用。
-
能否告诉我您是否尝试过我评论中提到的尝试?
标签: c# .net uwp msix appinstaller