Example #1
0
 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);
 }
Example #2
0
 public static bool IsGit2Installed()
 {
     AppFinder.AppInfo appInfo = AppFinder.GetApplicationInfo(new string[] { "Git version 2" });
     return(appInfo != null && !String.IsNullOrEmpty(appInfo.InstallPath));
 }