I am supposed to check via Wix if SQL Express 2014 (or higher) is installed if on Win7 and if SQL Express 2016 (or higher) if on Win10. How am I supposed to do that?
I am trying this now:
<!-- SQLExpress -->
<Property Id="SQLEXPRSEARCH" Value="0">
<RegistrySearch Id="SqlExprSearch"
Key="SOFTWARE\Microsoft\Microsoft SQL Server\SQLEXPRESS\MSSQLServer\CurrentVersion"
Name="CurrentVersion"
Root="HKLM"
Type="raw"
Win64="no"/>
</Property>
<Condition Message="This application requires Microsoft SQL Server Express 2014 Please install the Microsoft SQL Server then run this installer again.">
<![CDATA[Installed OR (SQLEXPRSEARCH >= "12.0.2000.8" AND VersionNT >= 601)]]>
</Condition>
But it does not really cover the requirements.