gpt4 book ai didi

uwp - Fall Creators Update UWP App Installer Updater 不工作

转载 作者:行者123 更新时间:2023-12-03 11:02:36 25 4
gpt4 key购买 nike

我正在尝试使用 Windows 10 Fall Creators Update 中的新更新程序来更新我在应用商店外分发的 UWP 应用程序。

我正在使用 .appinstaller 文件并使用如下链接触发安装:ms-appinstaller:?source=https://xxx.s3.amazonaws.com/xxx.appinstaller
初始版本和更新版本的安装都以这种方式工作。

但是,永远不会自动安装更新。

我的 .appinstaller 文件:

<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
xmlns="http://schemas.microsoft.com/appx/appinstaller/2017"
Version="1.0.77.0"
Uri="https://xxx.s3.amazonaws.com/xxx.appinstaller" >

<MainBundle
Name="4f479232-f509-428e-a58a-65652003c90f"
Publisher="CN=xxx, O=xxx, L=xxx, C=DE"
Version="1.0.77.0"
Uri="https://xxx.s3.amazonaws.com/xxx/Packaging_1.0.77.0_Test/Packaging_1.0.77.0_x86_x64.appxbundle" />
<UpdateSettings>
<OnLaunch/>
</UpdateSettings>
</AppInstaller>

更新的 .appinstaller 文件仅在版本 beeing 1.0.78.0 和指向更新包的 MainBundle-Url 中有所不同。所有代码签名都是有效的。

我没有为此更新程序以任何方式修改应用程序。

捕获与 Fiddler 连接的更新程序未成功。

我真的很感激这方面的任何帮助,因为我什至不知道如何调试它。
应用安装程序会在任何地方创建日志吗?

——
PS C:\Users\marvin> Get-AppxPackage -Name 4f479232-f509-428e-a58a-65652003c90f


Name : 4f479232-f509-428e-a58a-65652003c90f
Publisher : CN=xxx, O=xxx, L=xxx, C=DE
Architecture : X64
ResourceId :
Version : 1.0.77.0
PackageFullName : 4f479232-f509-428e-a58a-65652003c90f_1.0.77.0_x64__1mez93s8c8axt
InstallLocation : C:\Program Files\WindowsApps\4f479232-f509-428e-a58a-65652003c90f_1.0.77.0_x64__1mez93s8c8axt
IsFramework : False
PackageFamilyName : 4f479232-f509-428e-a58a-65652003c90f_1mez93s8c8axt
PublisherId : 1mez93s8c8axt
IsResourcePackage : False
IsBundle : False
IsDevelopmentMode : False
Dependencies : {4f479232-f509-428e-a58a-65652003c90f_1.0.77.0_neutral_split.scale-100_1mez93s8c8axt,
4f479232-f509-428e-a58a-65652003c90f_1.0.77.0_neutral_split.scale-400_1mez93s8c8axt}
IsPartiallyStaged : False
SignatureKind : Developer
Status : Ok

编辑:自从发布这篇文章后,我发现了一个描述日志和错误代码的页面: https://msdn.microsoft.com/en-us/library/hh973484.aspx#
在 AppXDeployment-Server 日志中,我看到在我的应用程序每次启动时都会记录一个事件:
Type: info, DeploymentOperation 31
Message Started deployment UpdateUsingAppInstallerOperation on a
package with main parameter 4f479232-f509-428e-a58a-65652003c90f_1.0.77.0_x64__1mez93s8c8axt
and Options: 0 and 0. See http://go.microsoft.com/fwlink/?LinkId=235160
for help diagnosing app deployment issues.

编辑 2:我创建了一个示例项目,在此处显示此问题: https://github.com/Marv51/appxUpdater

您可以从以下位置下载编译、签名和打包的二进制包: https://testingappxupdater.s3.amazonaws.com/index.html

最佳答案

以下是我遵循的详细步骤:

  • 有一个正确构建的 AppInstaller 文件。在我的测试中,Uri 元素在 <AppInstaller> 下属性指的是自身。
  • 使用自定义方案安装它 ms-appinstaller:?source=<http://...>
  • 验证安装的版本是 AppInstaller 文件中指定的版本。
  • 通过增加 <AppInstaller> 下的 Version 元素来修改 AppInstaller 文件属性。
  • 修改<MainBundle>下的指定应用包或 <MainPackage>属性来引用新版本。确保 Name、Version、Publisher 都与应用 list 中指定的元素匹配。
  • 保存并上传到 Web 服务器中的相同位置。
  • 等待 24 小时或将系统时钟向前移动 24 小时。 how to change system clock
  • 24 小时后,再次启动应用程序并关闭它。在此应用程序启动时,应触发更新检查。关闭应用程序后,更新将成功完成。
  • 再次启动应用程序,这次应该是新版本。根据更新的大小,完成更新操作的时间可能更长。
  • 关于uwp - Fall Creators Update UWP App Installer Updater 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46863396/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com