WmAutoUpdate.Updater.CheckForNewVersion C# (CSharp) Méthode

CheckForNewVersion() public méthode

public CheckForNewVersion ( ) : void
Résultat void
        public void CheckForNewVersion()
        {
            Stream s;
              TransferManager tm = new TransferManager();
              if (tm.downloadFile(URL, out s, updateFilePath, null))
              {
            s.Close();
            this.showUpdateDialog(s);
            this.cleanup();
              }
        }

Usage Example

Exemple #1
0
        static void Main()
        {
            Updater updater = new Updater("http://www.myupdateurl.com/update.xml");
              updater.CheckForNewVersion();

              Application.Run(new Form1());
        }