WmAutoUpdate.Updater.CheckForNewVersion C# (CSharp) Method

CheckForNewVersion() public method

public CheckForNewVersion ( ) : void
return 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

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

              Application.Run(new Form1());
        }