0
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()來運行它們。獲取註冊表中所有應用程序的路徑