public UninstallerProperties(UninstallerObject uo, UninstallerController uc) { InitializeComponent(); Controller = uc; Object = uo; tbAboutLink.Text = uo.AboutLink; if (string.IsNullOrEmpty(tbAboutLink.Text)) btAboutLink.Enabled = false; tbHelpLink.Text = uo.HelpLink; if (string.IsNullOrEmpty(tbHelpLink.Text)) btHelpLink.Enabled = false; tbName.Text = uo.Application; tbPath.Text = uo.Path; tbPublisher.Text = uo.Publisher; tbKey.Text = uo.Key; tbAction.Text = uo.Action; }
private void RefreshEntries(RegistryKey rootKey, string keyName) { using(RegistryKey hkKey = rootKey.OpenSubKey(keyName,false)) { foreach (string subKeyName in hkKey.GetSubKeyNames()) { UninstallerObject uo = new UninstallerObject(rootKey, string.Format("{0}\\{1}", keyName, subKeyName), subKeyName); if( uo.IsValid ) Items.Add(uo); } } }