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
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