I've seen How can I check what version/edition of Visual Studio is installed programmatically?, but the question remains, what will I find if the version installed is the 2010 Ultimate or Premium?
The answer selected as correct says "go to the registry and find":
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\[version]\Setup\VS\[edition]
Where [version] can be:
- For Visual Studio 2005: 8.0
- For Visual Studio 2008: 9.0
- For Visual Studio 2010: 10.0
- For Visual Studio 2012: 11.0
And [edition] can be:
- For the Standard Edition: Std
- For the Professional Edition: Pro
- For the Team Edition for Software Architects: VSTA
- For the Team Edition for Software Testers: VSTT
- For the Team Edition for Software Developers: VSTD
- For the Team Suite Edition: VSTS
- For the Premier Partner Edition (2005) or Shell Edition (2008): IDE
- For the Visual Studio 2005 Tools for the Microsoft Office System: VSTO
But it does not speak of Premium or Ultimate editions released (that I know of) for 2010 and 2012 at least.