I could read registry HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0
.
However, it doesn\'t give me any information about the edition of it - Profes
You can get the VS product version by running the following command.
"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -property catalog_productDisplayVersion
Open the installed visual studio software and click the Help menu select the About Microsoft Visual studio--> Get the visual studio Version
if somebody needs C# example then:
var registry = Registry.ClassesRoot;
var subKeyNames = registry.GetSubKeyNames();
var regex = new Regex(@"^VisualStudio\.edmx\.(\d+)\.(\d+)$");
foreach (var subKeyName in subKeyNames)
{
var match = regex.Match(subKeyName);
if (match.Success)
Console.WriteLine("V" + match.Groups[1].Value + "." + match.Groups[2].Value);
}
Run the path in cmd C:\Program Files (x86)\Microsoft Visual Studio\Installer>vswhere.exe