string registryKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall";
using (Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(registryKey))
{
(from a in key.GetSubKeyNames()
let r = key.OpenSubKey(a)
select new
{
Application = r.GetValue("DisplayName")
}).ToList().FindAll(c => c.Application != null).ForEach(c => Debug.WriteLine(c.Application));
此代码段显示注册表中应用程序的所有名称。我需要执行应用程序的 exe 文件的路径,并且我需要知道如何使用 Process.Start() 运行它们;