Unable to find the registry path for Visual Studio 2019 & 2022

Ramesh Arumugam 21 Reputation points
2022-06-24T06:07:38.2+00:00

Hi ,

I have installed Visual studio 2019 & 2022 and when we try to check in registry to find out what version is installed we are unable to get the generic location .
For example : if VS 2019 is installed in which path we can find the Application Name - Visual Studio 2019 and display version which is installed path as well , we need to figure out for many system in our environment , so what will be the generic path for both VS 2019 and VS2022 , Thanks in Advance

Thanks
Ramesh

Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,791 Reputation points Microsoft External Staff
    2022-06-24T08:13:35.34+00:00

    Hi @Ramesh Arumugam ,

    Welcome to Microsoft Q&A forum.

    VS will generate eight random characters to be identified in Registry when you install them. The Registry path you are looking for should be Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio_XXXXXXXX, as XXXXXXXX is randomly generated, they will not be the same.

    You can also find the installed VS instances and their eight characters in C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances. If you can locate and confirm this characters, then in this path Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\XXXXXXXX, you can match the eight characters, and find the DisplayName and DisplayVersion there.

    214620-image.png

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    1 person found this answer helpful.
    0 comments No comments

  2. Ivan 1 Reputation point
    2022-11-21T14:12:19.477+00:00

    You can use vswhere command-line utility, located in the fodler %ProgramFiles(x86)%\Microsoft Visual Studio\Installer.
    More details here https://github.com/Microsoft/vswhere/wiki/Examples

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.