How to get path to installed Visual Studio 15 Preview 4?

心已入冬 提交于 2019-12-25 04:55:10

问题


Visual Studio 14.0 (2015) installer saves path to devenv.exe to EnvironmentPath in registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\Setup\vs\

Visual Studio 15 Preview 4 does not save EnvironmentPath to HKLM registry. What is proper way to get executable path of installed Visual Studio 15?


回答1:


For Visual Studio "15" you should use the new setup configuration API to discover installed instances of Visual Studio with different workloads. See Visual Studio Setup Configuration Samples for the sample code.



来源:https://stackoverflow.com/questions/39795355/how-to-get-path-to-installed-visual-studio-15-preview-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!