使用自己的服务器更新 UWP App

UWP App update with own server

我正在寻找一种无需商店即可更新 Windows 通用应用程序的方法,因此我可以从我自己的服务器提供 appxbundle 文件。我可以从应用程序中下载这个包,但我还没有找到安装它的解决方案。设备门户核心 API 仅允许安装应用程序,但不允许更新。那么有没有一种方法可以从我的应用程序代码中开始更新过程?

您可以为 Web Install, which works very similarly to Click Once for classic desktop apps. This involves pointing the user to a link with ms-appinstaller: protocol which will launch the app installer and install the package. You define the .appinstall file which contains a standardized description of the components of the app, the location of potential updates, and specifies an update policy. Automated update are described in depth in this blog post 打包您的应用。

更新

除了网络安装,您显然还可以使用 PackageManager 更新应用程序。有关详细信息,请参阅 this blog post