cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bbarton11
Level 5

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!
Labels (1)
0 Kudos
(11) Replies