Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrapper "Unable to read registry value"

In boostrapper package.xml I am trying to read MSSQL entry from the regsitry like:

<InstallChecks>
    <RegistryCheck Property="CheckSQLInstalled" Key="HKLM\SOFTWARE\Microsoft\Microsoft SQL Server" Value="SsrpActiveServer" />
</InstallChecks>

After I run the result setup.exe I get in the log:

"Reading value 'SsrpActiveServer' of registry key 'HKLM\SOFTWARE\Microsoft\Microsoft SQL Server' Unable to read registry value Not setting value for property 'CheckSQLInstalled'"

I run it as Administrator. UAC is off also... The path in registry is correct. I can even retrieve it with BAT file like: Reg query "HKLM\SOFTWARE\Microsoft\Microsoft SQL Server" /v SsrpActiveServer

The problem happens on more than one machine. Any ideas? Thanks

like image 628
Ruul Zelezny Avatar asked Dec 09 '25 22:12

Ruul Zelezny


1 Answers

Setup.exe will run as a 32bit process, so on a 64 bit PC it will be reading

HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server

SsrpActiveServer value does not exist at that location.

like image 124
Colin S Avatar answered Dec 14 '25 16:12

Colin S



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!