"Greg Smith" wrote:
>
These do. How would you identify the app?
For example, the following code finds the current version of Java, and the
install path to it:
string key = @"SOFTWARE\JavaSoft\Java Runtime Environment";
Microsoft.Win32.RegistryKey keyJRE =
Microsoft.Win32 .Registry .LocalMachine .OpenSubKey (key, false);
string version = (string) keyJRE.GetValue("CurrentVersion");
Microsoft.Win32.RegistryKey keyJREactive = keyJRE.OpenSubKey(version);
string javahome =
System.IO.Path.Combine((string) keyJREactive.GetValue("JavaHome"),
@"bin\java.exe");
return javahome;