I have the following commands in my WiX Bundle:
<Variable Name="InstanceName" Value= "SQLExpress" />
<util:RegistrySearch Id="SqlInstanceKeyFound" Root="HKLM"
Key="SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL"
Value ="[InstanceName]" Result="exists" Variable="SqlInstanceKeyFound" />
I can see the SQL Server Express instance in Regedit on the machine, but my log file is reporting this back to me:
Registry key not found. Key = 'SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL'
Setting numeric variable 'SqlInstanceKeyFound' to value 0
Condition 'SqlInstanceKeyFound' evaluates to false.
Why is this not returning true when I can see the value in Regedit? To add a little more information, this is supposed to be a check for an SQL Express 2014 instance.
<util:RegistrySearch>
defaults to searching the 32-bit registry. To search the 64-bit registry, setWin64="yes"
.