Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, December 31, 2019 5:31 AM
Hi,
I have Installed VS 2019 Enterprise 16.4.2 on My Machine(64 Bit), I need to fetch Installation Directory of VS2019 from Registry path ,But there is no registry available for VS2019(Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\SxS\VS7).I can able to find other VS version but for VS2019 Enterprise I not able to see VS2019 Installation Directory path. Please refer Below Image.
I need To fetch path only from Registry.Please help me to solve Issue.
All replies (2)
Tuesday, December 31, 2019 8:04 AM | 1 vote
Hi TawniyaD,
Welcome to MSDN forum.
You could refer to this thread, and according to what Matt Cavallari said, Staring with the re-architecture of VS2017, VS can be installed a number of times. As such, we no longer register a single location for the install root of VS, nir do we register in the registry at all.
I suggest you can query for the installs of VS using the VSWhere tool, just like Matt said.
In addition, you could also refer to this similar issue: when install 2019 the registry is not updated accordingly.
I hope all above could help you.
Sincerely,
Tianyu
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 [email protected].
Friday, January 3, 2020 3:20 AM
Hi TawniyaD,
Why do you want to fetch the installation path from the registry key? Starting with VS 2017, we can enable install multiple side by side instances of the same VS version on the same machine, then not directly save the VS installation path inside the registry key like before, sorry for this inconvenience.
To know the installation path, please use the vswhere.exe command like the following:
>>C:\Program Files (x86)\Microsoft Visual Studio\Installer> vswhere.exe -legacy -prerelease -format json
Then, we can get those VS installation path as below:
Best regards,
Sara
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 [email protected]