internal StartupJunkNode(StartupEntryBase entry, string parentName) { Entry = entry; UninstallerName = parentName; ParentPath = entry.ParentLongName; Name = entry.EntryLongName; /*if (!string.IsNullOrEmpty(entry.CommandFilePath)) * { * ParentPath = Path.GetDirectoryName(entry.CommandFilePath); * Name = Path.GetFileName(entry.CommandFilePath); * }*/ Confidence.Add(StartupJunk.ConfidenceStartupMatched); var normalStartupEntry = entry as StartupEntry; if (normalStartupEntry != null && normalStartupEntry.IsRunOnce) { // If the entry is RunOnce, give it some negative points to keep it out of automatic removal. // It might be used to clean up after uninstall on next boot. Confidence.Add(StartupJunk.ConfidenceIsRunOnce); } }
public StartupJunkNode(StartupEntryBase entry, ApplicationUninstallerEntry application, IJunkCreator source) : base(application, source) { Entry = entry ?? throw new ArgumentNullException(nameof(entry)); Confidence.Add(ConfidenceStartupMatched); if (entry is StartupEntry normalStartupEntry && normalStartupEntry.IsRunOnce) { // If the entry is RunOnce, give it some negative points to keep it out of automatic removal. // It might be used to clean up after uninstall on next boot. Confidence.Add(ConfidenceStartupIsRunOnce); } }
internal StartupJunkNode(StartupEntryBase entry, string uninstallerName) : base(entry.ParentLongName, entry.EntryLongName, uninstallerName) { Entry = entry; Confidence.Add(StartupJunk.ConfidenceStartupMatched); var normalStartupEntry = entry as StartupEntry; if (normalStartupEntry != null && normalStartupEntry.IsRunOnce) { // If the entry is RunOnce, give it some negative points to keep it out of automatic removal. // It might be used to clean up after uninstall on next boot. Confidence.Add(StartupJunk.ConfidenceIsRunOnce); } }
protected void btnAdd_Click(Object Sender, EventArgs e) { if (Request.Form[hdnId.UniqueID] == "0") { oConfidence.Add(txtName.Text, (chkEnabled.Checked ? 1 : 0)); } else { oConfidence.Update(Int32.Parse(Request.Form[hdnId.UniqueID]), txtName.Text, (chkEnabled.Checked ? 1 : 0)); } if (Request.Form[hdnOrder.UniqueID] != "") { string strOrder = Request.Form[hdnOrder.UniqueID]; int intCount = 0; while (strOrder != "") { intCount++; int intId = Int32.Parse(strOrder.Substring(0, strOrder.IndexOf("&"))); strOrder = strOrder.Substring(strOrder.IndexOf("&") + 1); oConfidence.UpdateOrder(intId, intCount); } } Response.Redirect(Request.Path); }