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 get a registry key (not string value)
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 29, 2013
10:55 AM
How to get a registry key (not string value)
Can someone tell me how I can get a key value from the registry? I've seen examples of how to get a registry value from a string but I am looking for a key value.
For example, I am trying to determine if a machine has .NET Framework 4.0 installed on it. The key I'm trying to look at is [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]. I'd like to retrieve v4.0.30319 into a string and give a message if that key is not available.
Thanks!
For example, I am trying to determine if a machine has .NET Framework 4.0 installed on it. The key I'm trying to look at is [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319]. I'd like to retrieve v4.0.30319 into a string and give a message if that key is not available.
Thanks!
(11) Replies