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
- :
- How to access value data of Registry directly by skipping just upper level node
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
‎May 28, 2013
12:20 AM
How to access value data of Registry directly by skipping just upper level node
How to access value data of Registry directly by skipping just upper level node. e. g HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{Keycode}... i want to skip keycode and access Value data from Uninstall node . Value data is data of Value name under Keycode. Could anyone please help me in this?? what is the function and how to access it . and whether there is possible to get all Values of Value data in String List??
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 28, 2013
09:20 AM
>> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{Keycode}
"{Keycode}" (or rather the GUID assigned to the ProductCode of the product referenced is part of the path to the value that you are trying to read, so it is not possible to access those values without knowing the full path.
Once you know the full path to a key, then you can use RegDBQueryKey to get a list of either the subkeys or the named values for that key. So you could do this at the Uninstall level and then again on each subkey to then locate the value names that you are interested in.
http://kb.flexerasoftware.com/doc/Helpnet/installshield15langref/LangrefRegDBQueryKey_example.htm
"{Keycode}" (or rather the GUID assigned to the ProductCode of the product referenced is part of the path to the value that you are trying to read, so it is not possible to access those values without knowing the full path.
Once you know the full path to a key, then you can use RegDBQueryKey to get a list of either the subkeys or the named values for that key. So you could do this at the Uninstall level and then again on each subkey to then locate the value names that you are interested in.
http://kb.flexerasoftware.com/doc/Helpnet/installshield15langref/LangrefRegDBQueryKey_example.htm
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2013
07:22 AM
Thanks.. and one more query in the same.. How to find out product by Display name value by skipping Uninstall\Productcode.. if same product with different product code is installed on target system then how could we find out that specific product is exist on system with greater than(>) Display Version (particular version number).
how should we get display name and display version value of any product by "uninstall" key level only..i.e HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall .....not from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ProductCode}
how should we get display name and display version value of any product by "uninstall" key level only..i.e HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall .....not from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ProductCode}