Testing & Debugging Automatic Updates

Nathan Sokalski 4,121 Reputation points
2020-08-10T02:42:46.3+00:00

I am attempting to learn how to make my apps automatically detect & install updates from the Store as described at:

https://learn.microsoft.com/en-us/windows/uwp/packaging/self-install-package-updates

I am still writing my initial code, and I do not need or intend to do anything fancy with it (I just want to let my users know when there is an update and install it without manually uninstalling their current installation and installing the new one). The code looks simple enough, but any developer knows that no matter how simple something looks, you can still make mistakes. But for updates, how do I test the update code if I haven't submitted any updates to be checked for or found? Thanks!

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points
    2020-08-11T07:15:56.61+00:00

    Hello,

    Welcome to Microsoft Q&A.

    if you do not publish the package in the store, the code for checking the store update will not actually take effect.

    If you have other published packages in the Microsoft Store, you can use it for testing.

    I simply tested the code in the document (via an application that already exists in the store) and it works fine.

    Thanks.

    0 comments No comments