Windows 10 AppInstaller:“从 Web 访问文件时出错”

Posted

技术标签:

【中文标题】Windows 10 AppInstaller:“从 Web 访问文件时出错”【英文标题】:Windows 10 AppInstaller: "An error occurred while accessing the file from the web" 【发布时间】:2019-11-22 14:15:41 【问题描述】:

我可以使用.appxbundle 安装此应用程序,但是当我尝试在本地运行.appinstaller 文件时,我收到以下错误:

无法打开应用程序包:从 Web 访问文件时出错。请尝试在本地下载并打开文件。

通过导航到.appinstaller 文件中定义的地址,我可以从浏览器加载.appinstaller.appxbundle

【问题讨论】:

可以分享你关于appinstaller文件的xml内容吗? 由于网络隔离,Windows 10 应用(例如 App Installer)只能使用 IP 环回地址,例如 localhost。使用本地 IIS 服务器时,必须将 App Installer 添加到环回豁免列表中。更多信息请参考document。 【参考方案1】:

右键单击下载的 .appinstaller 文件并选择属性。在“属性”窗口的底部,选中“取消阻止”复选框,然后单击“确定”。重新运行 .appinstaller 文件,它现在应该会安装程序。

【讨论】:

以上是关于Windows 10 AppInstaller:“从 Web 访问文件时出错”的主要内容,如果未能解决你的问题,请参考以下文章

在 Windows 10 家庭版上安装 .appxbundle

AppInstaller XML 问题

wix安装程序ice03无效的语言ID

MSIX Web 安装程序不工作 - 解析应用程序包时出错

删除文件 ICE64 写入 localAppData

MSIX 侧载应用在更新后启动缓慢