<pre> StreamWriter sw = new StreamWriter(@"D:\localmachineProducts64.txt", true); using (RegistryKey rk = Registry.LocalMachine.OpenSubKey(uninstallKey)) { foreach (string skName in rk.GetSubKeyNames()) { using (RegistryKey sk = rk.OpenSubKey(skName)) { try { sw.Write(sk.GetValue("DisplayName") + "\t" + sk.GetValue("InstallLocation")); sw.Write(sw.NewLine); count++; } catch (Exception ex) { MessageBox.Show(ex.Message); } } } sw.Write("Total count :=" + count); } sw.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)