Click here to Skip to main content
15,903,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
Hello all,
I have an requirement, for which VS 2010 Ultimate or VS 2010 Test professional is a pre-requisite. Using WIX can we detect which edition of VS2010 is installed?
One thing I found is in windows registry if VS2010 is installed we have this key
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\Microsoft Visual Studio 2010 Ultimate - ENU"
Similarly if VS 2010 professional is installed we have
"HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Setup\Microsoft Visual Studio 2010 Professional - ENU"

Is this the only way to find or is there any better way of finding which edition of VS2010 is installed

Thanks in advance,
Kiran
Posted
Updated 25-Jul-12 19:22pm
v2
Comments
Jim Jos 26-Jul-12 1:38am    
This the best and easy way to find out. Using Registry element in wix we could find out or using the library Microsoft.Win32 we could get all the software installed in the machine from C# itself..

1 solution

I'd be more inclined to use AppSearch and find the component guid for each flavour of vs2010
 
Share this answer
 
Comments
Kiran Susarla 27-Jul-12 0:40am    
Hello Barneyman,
Thanks for your answer. From your answer searched in MSDN and found this link
http://msdn.microsoft.com/en-us/library/bb164659.aspx
This link clearly states which edition of VS2010 is installed.

Thanks,
Kiran

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900