Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public Vim_Install()
 {
     config("Vim",
            "http://ftp.vim.org/pub/vim/pc/gvim73_46.exe".uri(),
            "vim.exe");
     DownloadedInstallerFile = download(Install_Uri);
     DownloadedInstallerFile.startProcess();
 }
Ejemplo n.º 3
0
 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();
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 //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);
 }