private static void DcsApply(ElevatedProcessResponsePipe response, string outputRoot, IEnumerable <string> patchFolders) { PatchList patches = LoadPatches(patchFolders); if (!InstallationLocation.TryLoadLocation(outputRoot, true, out InstallationLocation location)) { ReportBadLocation(response, outputRoot); return; } PatchDestination dcs = new PatchDestination(location); HashSet <string> patchExclusions = PatchInstallation.LoadPatchExclusions(); IList <StatusReportItem> results = patches.Apply(dcs, patchExclusions).ToList(); response.SendReport(results); }