Fall Creators Update UWP App Installer Updater 不工作
Fall Creators Update UWP App Installer Updater not working
我正在尝试使用 Windows 10 秋季创作者更新中的新更新程序来更新我在商店外分发的 UWP 应用程序。
我正在使用 .appinstaller 文件并使用 link 触发安装,如下所示: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 文件仅在 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\WindowsAppsf479232-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
@marv51 - Windows10 部署服务目前仅在每次启动应用程序时每 24 小时检查一次更新。因此,请尝试在 24 小时后再次启动该应用程序,一旦启动的应用程序关闭,就应该应用更新。
如果您不想等待,可以将系统时钟提前 24 小时,然后再次启动应用程序以触发更新。
以下是我遵循的详细步骤:
- 拥有正确构建的 AppInstaller 文件。在我的测试中,
<AppInstaller>
属性下的 Uri 元素引用了自身。
- 使用自定义方案安装它
ms-appinstaller:?source=<http://...>
- 验证安装的版本是 AppInstaller 文件中指定的版本。
- 通过递增
<AppInstaller>
属性下的 Version 元素来修改 AppInstaller 文件。
- 修改
<MainBundle>
或<MainPackage>
属性下的指定应用包引用新版本。确保名称、版本、发布者都与应用程序清单中指定的元素匹配。
- 保存并上传到网络服务器中的同一位置。
- 要么等待 24 小时,要么将系统时钟调快 24 小时。 how to change system clock
- 24 小时后,再次启动应用程序并将其关闭。在应用程序启动时,应触发更新检查。关闭应用程序后,更新将成功完成。
- 再次启动应用程序,这次应该是新版本了。根据更新的大小,完成更新操作的时间可能会更长。
我无法让它与 Fall Creators Update 一起使用。但是,它现在可以在 build 17127 中使用来自 VisualStudio 2017 15.7 Preview 2 的新工具和预览版 SDK。
新的 VisualStudio 预览版允许您在包创建时配置更新 URL。在我的初始测试中,它似乎没有问题。
我正在尝试使用 Windows 10 秋季创作者更新中的新更新程序来更新我在商店外分发的 UWP 应用程序。
我正在使用 .appinstaller 文件并使用 link 触发安装,如下所示: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 文件仅在 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\WindowsAppsf479232-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
@marv51 - Windows10 部署服务目前仅在每次启动应用程序时每 24 小时检查一次更新。因此,请尝试在 24 小时后再次启动该应用程序,一旦启动的应用程序关闭,就应该应用更新。
如果您不想等待,可以将系统时钟提前 24 小时,然后再次启动应用程序以触发更新。
以下是我遵循的详细步骤:
- 拥有正确构建的 AppInstaller 文件。在我的测试中,
<AppInstaller>
属性下的 Uri 元素引用了自身。 - 使用自定义方案安装它
ms-appinstaller:?source=<http://...>
- 验证安装的版本是 AppInstaller 文件中指定的版本。
- 通过递增
<AppInstaller>
属性下的 Version 元素来修改 AppInstaller 文件。 - 修改
<MainBundle>
或<MainPackage>
属性下的指定应用包引用新版本。确保名称、版本、发布者都与应用程序清单中指定的元素匹配。 - 保存并上传到网络服务器中的同一位置。
- 要么等待 24 小时,要么将系统时钟调快 24 小时。 how to change system clock
- 24 小时后,再次启动应用程序并将其关闭。在应用程序启动时,应触发更新检查。关闭应用程序后,更新将成功完成。
- 再次启动应用程序,这次应该是新版本了。根据更新的大小,完成更新操作的时间可能会更长。
我无法让它与 Fall Creators Update 一起使用。但是,它现在可以在 build 17127 中使用来自 VisualStudio 2017 15.7 Preview 2 的新工具和预览版 SDK。
新的 VisualStudio 预览版允许您在包创建时配置更新 URL。在我的初始测试中,它似乎没有问题。