I was looking for this information, but after a while I remembered that I wrote a program for it. For everyone or for me in the future.
class Program { //using Microsoft.Win32; //using System.IO; static void Main(string[] args) { string uninstallKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall"; RegistryKey regKey = Registry.LocalMachine.OpenSubKey(uninstallKey); string[] subKey = regKey.GetSubKeyNames().Select((c)=> { RegistryKey rk = regKey.OpenSubKey(c); string displayName = (string)rk.GetValue("DisplayName"); if (string.IsNullOrEmpty(displayName)) return ""; return displayName + string.Format(" => [{0}]", c); }).ToArray<string>(); string filename = "ProgramList.txt"; if (File.Exists(filename)) File.Delete(filename); StreamWriter sw = File.CreateText(filename); foreach (string appName in subKey.OrderBy(c=>c)) { if (appName != "" && !appName.StartsWith("{")) { Console.WriteLine(appName); sw.WriteLine(appName); } } sw.Close(); } }
antonio
source share