Every app deserves a HappyBin!

Pages: Documentation, Implementation


Pseudocode for basic workflow as a passive-download, background instance:
void Main()
{
   Updater updater = new Updater();

   updater.InitializePatchStatus();

   if( updater.Status.PatchFilePathExists )
   {
      RuntimeExeInfo exeInfo = updater.Status.ExeInfo;
      if( updater.Status.PatchIsMandatory )
      {
         updater.InstallExistingPatches( exeInfo.Name, exeInfo.FolderPath );
      }
      else
      {
         DialogResult result = MessageBox.Show( "An update is available and ready to install.  Would you like to install now?" );
         if( response == 'y' )
         {
            updater.InstallExistingPatches( exeInfo.Name, exeInfo.FolderPath );
         }
      }
   }
}

Last edited Nov 3, 2013 at 4:40 AM by steveshortt, version 6