public static IEnumerable <string> GenerateCommandLineExecution(IAbsoluteFilePath location, string executable, params string[] desiredParams) { var updateExe = GetUpdateExe(location); return(updateExe != null && updateExe.Exists ? new[] { updateExe.ToString() }.Concat(Restarter.BuildUpdateExeArguments(executable, desiredParams)) : new[] { location.ToString() }.Concat(desiredParams)); }