none
Getting Microsoft Edge version via Program

    Question

  • Hi, 

    I want to read Edge browser version installed in my PC.

    What is the correct way to get it via small program.

    Can somebody please point out where exactly in system(registry/file) I can find it?

    Best Regards,

    Sharad

    Monday, February 5, 2018 7:35 AM

All replies

  • Hi,

    You can see it in registry:
    HKEY_USERS\S-1-5-21-xxxxxxxxxxx_Classes\

    (this is my case)
    HKEY_USERS\S-1-5-21-284175509-2592986665-2868196243-1001_Classes\AppX3xxs313wwkfjhythsb8q46xdsq8d2cvv


        

    Regards,

    Ashidacchi


    • Edited by Ashidacchi Monday, February 5, 2018 8:44 AM
    Monday, February 5, 2018 8:37 AM
  • Thanks for the Quick reply, But is there any common registry/file where I can find it out? In my Win10 machine the registry entry you have mentioned is not present. 

    Best Regards,

    Sharad

    Monday, February 5, 2018 10:21 AM
  • Can't you find HKEY_USERS\S-1-5-21-xxxxxxxxxxx_Classes\?

    Ashidacchi

    Monday, February 5, 2018 10:37 AM
  • HKEY_USERS\S-1-5-21-xxxxxxxxxxx_Classes\ this entry is there. but after that which one you have mentioned is not there :(.

    There are many other entries but not matching exactly what you have mentioned.

    I need a common entry for all Win10 system.

    -Sharad


    Monday, February 5, 2018 11:38 AM
  • 
    Monday, February 5, 2018 11:42 AM
  • So many places in registry, version number is embedded like Microsoft.MicrosoftEdge_38.14393.1066.0_neutral__8wekyb3d8bbwe 

    Which one I should go and read so that it will generic for all Win10 system?

    -Sharad

    Monday, February 5, 2018 11:55 AM
  • Hi Sharad Kumar,

    According to your description, I suggest you could try to call powershell command in your program to get the current edge version.

    The powershell command is:

    Get-AppxPackage -Name Microsoft.MicrosoftEdge | Foreach Version
    

    More details about how to use powershell in C#, you could refer to below article:

    https://blogs.msdn.microsoft.com/kebab/2014/04/28/executing-powershell-scripts-from-c/ 

    Besides, you could use javascript to get the current edge version.

    More details, you could refer to below code link:

    https://codepen.io/gapcode/pen/vEJNZN

    Best Regards,

    Brando


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, February 6, 2018 5:04 AM
  • Hi Brando,

    Thanks for  your suggestions.

    I am a C++ developer. How can I achieve same use C++ code (is there in API available)? Can you please guide there as well.

    Best Regards,

    Sharad

    Tuesday, February 6, 2018 7:14 AM
  • Hi,

    I said "HKEY_USERS", not "HKEY_CURRENT_USER".

    Ashidacchi

    Tuesday, February 6, 2018 7:17 AM
  • Yes I saw inside HKEY_USERS only but didn't find exact key.

    Tuesday, February 6, 2018 8:53 AM
  • Hi,

    Please think my figure as a sample (I don't intend to show the same key as mine).
    Search FriendlyTypeName that includes "MicrosoftEdge" in HKEY_USERS\S-1-5-21-xxxxxxxxxxx_Classes\.

    Regards,

    Ashidacchi

    Tuesday, February 6, 2018 10:07 AM