C# Class Bari.Core.Tools.DownloadableSelfExtractingExternalTool

A more generally usable version of DownloadableExternalTool where the downloaded file is not the external tool executable itself but an installer/self extracting package
Inheritance: DownloadableExternalTool
Datei anzeigen Open project: vigoo/bari

Protected Methods

Method Description
DownloadAndDeploy ( string target ) : void

Downloads the tool to the given target path

DownloadableSelfExtractingExternalTool ( string name, string defaultInstallLocation, string executableName, Uri url, bool isDotNETProcess, IParameters parameters ) : System

Defines a tool which can be downloaded if missing from an URL

GetInstallerArguments ( string targetDir ) : string

Returns the command line arguments to be passed to the downloaded installer

Method Details

DownloadAndDeploy() protected method

Downloads the tool to the given target path
protected DownloadAndDeploy ( string target ) : void
target string Target directory
return void

DownloadableSelfExtractingExternalTool() protected method

Defines a tool which can be downloaded if missing from an URL
protected DownloadableSelfExtractingExternalTool ( string name, string defaultInstallLocation, string executableName, Uri url, bool isDotNETProcess, IParameters parameters ) : System
name string Unique name of this tool
defaultInstallLocation string Default installation location where the tool can be found
executableName string File name of the executable to be ran
url System.Uri The URL where the tool archive can be downloaded from
isDotNETProcess bool If true the process will be executed with mono when not running on MS CLR
parameters IParameters Application parameters
return System

GetInstallerArguments() protected abstract method

Returns the command line arguments to be passed to the downloaded installer
protected abstract GetInstallerArguments ( string targetDir ) : string
targetDir string Target directory where the tool should be installed
return string