Difficulty with ReadRegStr in Windows 7
I'm pretty new to NSIS and apologize in advance if this is a silly question: Is there something I need to be doing to get the ReadRegStr function working for the entire registry in Windows 7? I'm trying
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQLServer\CurrentVersion" "CurrentVersion",
but keep getting an empty string (and a set error flag)--even though I can navigate to the CurrentVersion key and there is definitely a value there. This works fine on Vista and XP.
I seem to be able to read the registry for other applications. (For example,
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A\WinSDKNetFxTools" "ProductVersion" works.)
Thank you for any help you can give.