locked
How to get a version of my windows store app in Windows Store? RRS feed

  • Question

  • Hi.

    If installed app is older version(ex 1.4) than uploaded app(ex 1.7) in Windows Store, I want to show a message as "This is old version. Please update this app to the new version in Windows Store." when opening my store app.

    Evernote and Melon app was shown the message.

    I searched the function or class about that, but I couldn't find that.

    Can I get the version using C# code?

    If it is possible, Please let me know.

    Thanks! I'm waiting your reply.

    Tuesday, May 7, 2013 9:33 AM

Answers

  • Hello Jy.kim

    if you want to get version of current installed app then use 

    Package.Current.Id.Version

    this will give you Build, Major ,Minor and Revision value.

    If it satisfy your need then mark it as answer.

    Regards,
    Atul Gaikwad



    Tuesday, May 7, 2013 9:47 AM

All replies

  • there is no out of the box functionality for this.

    you wil have to store somewhere all apps can check what the lastest version is, then compare this with the current version.

    if there is a newer version use the launcher to open the store.

    lik: Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store:REVIEW?PFN=MY_PACKAGE_FAMILY_NAME"));

    see nuget package winrt.tasks ; it contains helpers to do ths.


    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    Tuesday, May 7, 2013 9:42 AM
  • Hello Jy.kim

    if you want to get version of current installed app then use 

    Package.Current.Id.Version

    this will give you Build, Major ,Minor and Revision value.

    If it satisfy your need then mark it as answer.

    Regards,
    Atul Gaikwad



    Tuesday, May 7, 2013 9:47 AM