Showing results for 
Show  only  | Search instead for 
Did you mean: 

RegDBGetKeyValueEx fails on 64bit looking for SQL

Lucky me I inherited an Installshield 2010 project that people have worked on for 10 years. I was attempting to get a DisplayName for the SQL server that was installed.

This code works fine on Win7 32bit but fails on Win7 64bit.
if (RegDBGetKeyValueEx ("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Microsoft SQL Server 10", "DisplayName", nvType, g_SQLDisplayVer, nvSize) < 0) then
MessageBox ("RegDBGetKeyValueEx failed.", SEVERE);

I have a IS 2012 license as well and the above code works just fine but unfortunately it doesn't work with IS 2010. Any suggestions on how I might be able to get the DisplayName on 64bit without upgrading Installshield?

Also this command

if (RegDBKeyExist("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Microsoft SQL Server 10") = 1 ) then

wouldn't find the key even if it exists but

if (RegDBKeyExist("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Microsoft SQL Server 10") ) then

would work.

I realize this is a very old version of Installshield but I don't know if upgrading Installshield will be possible.

Thanks for any assistance!

Labels (1)
0 Kudos
1 Reply

Re: RegDBGetKeyValueEx fails on 64bit looking for SQL

I thought I would follow up with this thread.

I've been able to work through this so this isn't an issue anymore.
0 Kudos