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
- :
- RegDBKeyExist not working
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
Sep 07, 2015
04:44 AM
RegDBKeyExist not working
I have a registry entry as below
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
szKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Installer\\UserData\\S-1-5-18\\Products\\00004109610090400000000000F01FEC";
nResult = RegDBKeyExist(szKey);
In my registry, the above key exists. But the value returned is -1. If I search for key exists till 'products', it returns 1 properly. The product key is spelled right, because I copied from registry. What could be the problem?
Please leave your inputs
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
szKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Installer\\UserData\\S-1-5-18\\Products\\00004109610090400000000000F01FEC";
nResult = RegDBKeyExist(szKey);
In my registry, the above key exists. But the value returned is -1. If I search for key exists till 'products', it returns 1 properly. The product key is spelled right, because I copied from registry. What could be the problem?
Please leave your inputs
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 07, 2015
05:08 AM
I found the problem.
Actually I was searching for a 64 bit key in 32 bit path. That's why the search results shows wrong result.
Actually I was searching for a 64 bit key in 32 bit path. That's why the search results shows wrong result.