public static ActionResult OpenGwupeIfNotOpen(Session session) { session.Log("Begin open GwupeIfNotOpen"); Process pr = OsUtils.GetMyProcess("BlitsMe.Agent", null, OsUtils.ProgramFilesx86 + "\\BlitsMe" + BuildMarker + "\\BlitsMe.Agent.exe"); Process pr2 = OsUtils.GetMyProcess("Gwupe.Agent", null, OsUtils.ProgramFilesx86 + "\\Gwupe" + BuildMarker + "\\Gwupe.Agent.exe"); if (pr == null && pr2 == null) { // Now start Gwupe try { Process.Start(OsUtils.ProgramFilesx86 + "\\Gwupe" + BuildMarker + "\\Gwupe.Agent.exe"); } catch (Exception e) { session.Log("GwupeIfNotOpen caught exception : " + e.Message + "\n" + e); return(ActionResult.Failure); } return(ActionResult.Success); } return(ActionResult.Success); }