private static string GetGitExtensionsFullPath() { string fileName = Assembly.GetAssembly(typeof(FormSettings)).Location; fileName = fileName.Substring(0, fileName.LastIndexOfAny(new char[] { '\\', '/' })); return fileName + "\\GitExtensions.exe"; }