This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- RegDBGetKeyValueEx fails on 64bit looking for SQL
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 03, 2014
03:08 PM
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);
endif;
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!
jeff
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);
endif;
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!
jeff
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 07, 2014
05:27 PM
I thought I would follow up with this thread.
I've been able to work through this so this isn't an issue anymore.
I've been able to work through this so this isn't an issue anymore.