Programmatically finding the VS2017 installation directory

前端 未结 10 1213
梦谈多话
梦谈多话 2020-12-06 17:49

With previous versions of VS you could query the registry to determine the installation directory for VS:

HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Visu

10条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-06 18:23

    Visual Studio 2017 supports no-registry, side-by-side installations of all SKUs (Enterprise, Professional and Community).

    MSI installlers can query via APIs described here: https://blogs.msdn.microsoft.com/heaths/2016/09/15/changes-to-visual-studio-15-setup/

    Examples are here:

    • https://code.msdn.microsoft.com/Visual-Studio-Setup-0cedd331
    • https://github.com/microsoft/vs-setup-samples

提交回复
热议问题