question

SowmiyaKrishnamoorthi-2700 avatar image
1 Vote"
SowmiyaKrishnamoorthi-2700 asked GiladNoy-1533 commented

How Can we Check the New Version of app update is available in store [UWP] programmatically.

I have a UWP app in the store. I uploaded an appxupload-File. Is there a way to determine at runtime if a newer version of the app is available in the store?
We have an UWP application available in MS Store,in which we have AppxBundle package to user toinstall the application.In this we need to check programmatically is there any high version available in the store,need to inform the user to update the new version of your application.

As suggested in Microsoft documentation,https://docs.microsoft.com/en-us/uw...checkupdateavailabilityasync?view=winrt-19041,we are not using .appinstaller file to install an uwp application.

Is there any way to check the higher version availability in store? inside the app with appxBundle or without .appinstaller file.

windows-uwp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichardZhang-MSFT avatar image
0 Votes"
RichardZhang-MSFT answered GiladNoy-1533 commented

Hello,

Welcome to Microsoft Q&A.

If your app is submitted to the Microsoft Store, then you can check the updates through StoreContext.

This document may help you:

Download and install package updates from the Store

You can get available package updates through StoreContext.GetAppAndOptionalStorePackageUpdatesAsync

Thanks.

· 10
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RichardZhang-MSFT it looks like GetAppAndOptionalStorePackageUpdatesAsync has been broken for a while, there are a number of reports on it.

See https://github.com/microsoft/WinDev/issues/22


Can you please route this to the store team?

1 Vote 1 ·

Hello, according to my test (an App that is already on the store), GetAppAndOptionalStorePackageUpdatesAsync can check for updates and return data, and it seems to be working properly. Are you using Package Flight for testing? After updating the stable version, can it check for updates?

0 Votes 0 ·

Hello, has your problem been resolved? If not, please feel free to ask

0 Votes 0 ·

@RichardZhang-MSFT replying here as well. I have apps in the Store that throw the Exception when checking for updates. This is for Stable versions of the apps. Although, shouldn't this work for flighting or stable?

0 Votes 0 ·
Show more comments

Hi,

I have followed the document https://docs.microsoft.com/en-us/windows/uwp/packaging/self-install-package-updates in my UWP app and was able to retrieve the latest app version. However, the "PackageDownloadProgress" was always 0 regardless of whether the app download/installation is successful. May I know if this is a known issue?

1 Vote 1 ·

I guess it's probably irrelevant by now, but I had the issue with PackageDownloadProgress staying 0 as well.
The problem was that the app was side loaded in debug configuration from Visual Studio.
I solved it by side loading a packaged app in release config (i.e. installed an .msix file created using the msbuild tool).

0 Votes 0 ·