public static string GetBinaryFolder() { AppFinder.AppInfo appInfo = AppFinder.GetApplicationInfo(new string[] { "Git version 2" }); if (appInfo != null && !String.IsNullOrEmpty(appInfo.InstallPath)) { return(System.IO.Path.Combine(appInfo.InstallPath, "bin")); } return(String.Empty); }
public static bool IsGit2Installed() { AppFinder.AppInfo appInfo = AppFinder.GetApplicationInfo(new string[] { "Git version 2" }); return(appInfo != null && !String.IsNullOrEmpty(appInfo.InstallPath)); }