// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using Microsoft.Win32; class MainClass { public static void Main(string[] args) { RegistryKey dir = Registry.LocalMachine.OpenSubKey("SOFTWARE").OpenSubKey("Microsoft").OpenSubKey("ASP.NET").OpenSubKey("1.1.4322.0"); String[] vals = dir.GetValueNames(); foreach(string v in vals) { string data = (string)dir.GetValue(v); Console.WriteLine(v + " = " + data); } } }