public bool install(Action <string> onDownload) { if (Install_File.valid().isFalse()) { "in Install for Tool {0} , a valid InstallFile must be provided: {1}".error(ToolName, Install_File); return(false); } "Installing: {0}".debug(ToolName); if (isInstalled()) { return(true); } DownloadedInstallerFile = download(Install_File); if (DownloadedInstallerFile.fileExists()) { onDownload(DownloadedInstallerFile); } if (isInstalled()) { "{0} installed ok".info(Version); return(true); } "There was a problem installing the {0}".error(Version); return(false); }
public Vim_Install() { config("Vim", "http://ftp.vim.org/pub/vim/pc/gvim73_46.exe".uri(), "vim.exe"); DownloadedInstallerFile = download(Install_Uri); DownloadedInstallerFile.startProcess(); }
public PdfCreator_Install() { config("PdfCreator", "http://green.download.pdfforge.org/pdfcreator/1.4.0/PDFCreator-1_4_0_setup.exe".uri(), "PdfCreator.exe"); DownloadedInstallerFile = download(Install_Uri); DownloadedInstallerFile.startProcess(); }
public yEd_Install() { config("yEd", "http://www.yworks.com/products/yed/demo/yEd-3.9.2_setup.exe".uri(), "yEd.exe"); DownloadedInstallerFile = download(Install_Uri); DownloadedInstallerFile.startProcess(); }
//this will just download the installer (with the file in public virtual string installerFile() { DownloadedInstallerFile = download(Install_File); if (DownloadedInstallerFile.fileExists()) { return(DownloadedInstallerFile); } "[Tool_API] could not download Install_File: {0}".error(DownloadedInstallerFile); return(null); }