Where to register CLSID entry for Visual Studio 2017 or later version

Archana Soni 1 Reputation point
2021-12-16T12:41:03.597+00:00

Hi,
For one of our project, we had created some registry entry under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID<registry entry> and some under specific VS version. This seems to be working fine with VS 2015 or prior releases. From VS 2017 on-wards we have moved VS specific entries in *.pkgdef file. But we are not exactly sure about registry entries for CLSID. If we make under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\ it does work with VS 2017 but our doubt is on system where multiple instance of VS 2017 exist will it work ? Or we need to move these inside *.pkgdef file ?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,621 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,801 Reputation points Microsoft Vendor
    2021-12-17T10:03:36.56+00:00

    Hi @Archana Soni ,

    Welcome to Microsoft Q&A!

    Do you want to detect the instances of Visual Studio 2017?

    Changing registry entry of Visual Studio is not recommended. You can use Tools for detecting and managing Visual Studio instances.

    In addition, the details of existing Visual Studio instances are located in C:\ProgramData\Microsoft\VisualStudio\Packages_Instances. You can also check it.

    Sincerely,
    Anna
    *
    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.