Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
628 views
in Technique[技术] by (71.8m points)

64 bit - Disabling registry redirection for a registry key on an x64 platform

On a 64-bit platform, installed-check fails for SQL Reporting Services and Add-ins. The installer is checking the registry entries under path "HKEY_LOCAL_MACHINESoftwareMicrosoftMicrosoft SQL ServerInstance Names" and registry entry is available out there, but since MS SQL Server is a 64-bit application, therefore, the installer is redirected to the path "HKEY_LOCAL_MACHINESoftwareWOW6432nodeMicrosoftMicrosoft SQL ServerInstance Names" and there are no entries for the same. So the install check fails.

Workaround: I have tested it with manually creating entries under "HKEY_LOCAL_MACHINESoftwareWOW6432nodeMicrosoftMicrosoft SQL ServerInstance NamesRS" and after that the install check is successful.

In short, on an x64 platform, installed-check is referring registry keys from WOW6432node and not the 64-bit ones.

So, how could I force my 32-bit installer to access 64-bit registries for correct installed-check?

I have tried RegDisableReflectionKey and related functions as an alternative for registry redirection, but it didn't work at my end.

How can I fix this problem?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Microsoft has published information on Registry Reflection which includes a description of the KEY_WOW64_64KEY for RegOpenKeyEx.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...