locked
Getting OS version and build programmatically RRS feed

  • Question

  • I would like to get the exact OS build and version (and possibly other info like Lumia updates installed etc) programmatically in my app for debugging and logging purposes. Is there a reliable way (best if in C++/CX)?

    • Moved by Jamles Hez Thursday, February 19, 2015 7:45 AM
    Wednesday, February 18, 2015 8:22 AM

Answers

  • Windows Runtime app can only work on Windows Phone 8.1, so the OS must be 8.1

    Or you can get some information from this class: EasClientDeviceInformation class

    --James


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Jamles Hez Sunday, March 1, 2015 7:18 AM
    • Proposed as answer by Jamles Hez Sunday, March 1, 2015 7:18 AM
    • Marked as answer by Michael Pliskin Sunday, March 1, 2015 7:55 AM
    Sunday, March 1, 2015 7:17 AM

All replies

  • For Windows Phone(Silverlight app) , you can retrieve the phone OS version using the following:

    https://msdn.microsoft.com/en-us/library/windows/apps/system.environment.osversion(v=vs.105).aspx

    You can retrieve device firmware version(not same as OS version) using the following:

    https://msdn.microsoft.com/en-us/library/windows/apps/microsoft.phone.info.deviceextendedproperties(v=vs.105).aspx


    Wednesday, February 18, 2015 5:53 PM
  • Thanks for the reply, I am actually writing a Windows Runtime app so Silverlight is no good for me. Any pointers how to do that in Windows Runtime?
    Wednesday, February 18, 2015 7:34 PM
  • Windows Runtime app can only work on Windows Phone 8.1, so the OS must be 8.1

    Or you can get some information from this class: EasClientDeviceInformation class

    --James


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    • Edited by Jamles Hez Sunday, March 1, 2015 7:18 AM
    • Proposed as answer by Jamles Hez Sunday, March 1, 2015 7:18 AM
    • Marked as answer by Michael Pliskin Sunday, March 1, 2015 7:55 AM
    Sunday, March 1, 2015 7:17 AM
  • Thanks a lot, the link is really useful! Got a lot of info.

    Regarding version - I am building a Universal app, so it might run on Windows 8 too I believe (in desktop flavor). So yes, phone is 8.1 always, but desktop can be 8.0. Was trying to find an one-size-fits-all solution. Also, Windows 10 is around the corner, and I would love to report it correctly too.

    Sunday, March 1, 2015 7:55 AM
  • "Universal apps" built with VS 2013 can only run on Windows 8.1, not Windows 8.0.

    Sunday, March 1, 2015 7:14 PM
  • Ok I thought they can work on 8.0 for some reason. Anyway, all clear then, and hope Windows 10 will make itself detectable easily somehow. Thanks!
    Sunday, March 1, 2015 7:21 PM
  • James,

    EasClientDeviceInformation::OperatingSystem gives "WindowsPhone". How to get the exact OS version information (8.10.X.Y) in C++/CX on Win Phone 8.1 ? Thanks.

    -Mahesh



    • Edited by MaheshBabuV Friday, May 22, 2015 5:52 PM added version info
    Friday, May 22, 2015 5:47 PM