Example #1
0
        //Replace the update apply exe
        public static bool updateTheAdditionalDirectory()
        {
            //Try to download the files
            try
            {
                //use FTP downloader
                ftp c = new ftp();
                c.FtpGetFiles(ftp_bundle + "Additional/", local_additionalDirectory, ".temp");
            }

            catch (Exception)
            {
                //So much can go wrong so just return false
                return(false);
            }
            //The update completed, return true
            return(true);
        }
Example #2
0
 //Download REMOTE assembly
 public static bool DownloadRemoteAssembly()
 {
     //clear downloads directory
     if (ClearTheDirectory(local_receivedUpdates))
     {
         //Try to download the files
         try
         {
             //use FTP downloader
             ftp c = new ftp();
             c.FtpGetFiles(ftp_bundleContents, local_receivedUpdates, ".temp");
         }
         catch (Exception)
         {
             //So much can go wrong so just return false
             return(false);
         }
     }
     //The update completed, return true
     return(true);
 }