protected JunkResultBase(ApplicationUninstallerEntry application, IJunkCreator source, ConfidenceCollection confidence)
 {
     Application = application;
     Source      = source;
     Confidence  = confidence;
 }
 public RunProcessJunk(ApplicationUninstallerEntry application, IJunkCreator source, ProcessStartCommand processToStart, string junkName) : base(application, source)
 {
     _junkName      = junkName;
     ProcessToStart = processToStart;
 }
 protected JunkResultBase(ApplicationUninstallerEntry application, IJunkCreator source) : this(application, source, new ConfidenceCollection())
 {
 }
 public RegistryValueJunk(string containingKeyPath, string valueName, ApplicationUninstallerEntry application,
                          IJunkCreator source) : base(containingKeyPath, application, source)
 {
     ValueName = valueName;
 }
Esempio n. 5
0
        public RegistryKeyJunk(string fullRegKeyPath, ApplicationUninstallerEntry application, IJunkCreator source) : base(application, source)
        {
            if (string.IsNullOrEmpty(fullRegKeyPath))
            {
                throw new ArgumentException(@"Argument is null or empty", nameof(fullRegKeyPath));
            }

            FullRegKeyPath = fullRegKeyPath.TrimEnd('\\', '/', ' ');
        }
Esempio n. 6
0
        public StartupJunkNode(StartupEntryBase entry, ApplicationUninstallerEntry application, IJunkCreator source)
            : base(application, source)
        {
            if (entry == null)
            {
                throw new ArgumentNullException(nameof(entry));
            }

            Entry = entry;

            Confidence.Add(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(ConfidenceStartupIsRunOnce);
            }
        }
Esempio n. 7
0
 public FileSystemJunk(FileSystemInfo path, ApplicationUninstallerEntry application, IJunkCreator source) : base(application, source)
 {
     Path = path;
 }