/// <summary> /// Checks if a command is installed by a batch file /// </summary> /// <param name="command">The command that checks if the command is installed</param> /// <returns>Returns if the command is installed or not</returns> protected static async Task <bool> IsCommandInstalled(string command, IInstallationService installationService) { var result = await installationService.RunIsCommandInstalled(command); if (result.Status != CommandStatus.Success) { return(false); } return(ParseResult(result.Output)); }