In one of my project, first I need to check whether SQL Server is installed on the machine or not. I am doing this with the code shown here:
 var sqlRegistry = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Microsoft SQL Server", true);
 if (sqlRegistry == null) 
 { }
 else 
 { }
But in the else part, I need to know whether the installed SQL Server is "only" SQL Server Express, or a full SQL Server edition. 
How will I go for this?
 
     
     
     
     
     
    