title: SQL Server 2012 Express version in registry
body: <p>I have an installation code which checks the version of the SQL Server installed by reading the version number from the registry key </p>
  
  <pre><code>SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion 
  -&gt; current version.
  </code></pre>
  
  <p>I installed SQL Server 2012 Express and this key does not exist.</p>
  
  <p>SQL Server 2012 (non-express) does have this key.</p>
  
  <p>Before I go and change my code to actually run a query to get the version - is there some other registry key which holds the express version number?</p>
  
  <p>Thank you.</p>