How make a buttom to search upadtes to y tool?
im using this but all time show not updates and i make one update.
Version version = null; string fileName = ""; try { string name = ""; this.reader = new XmlTextReader("http://www.url.com/update.xml"); this.reader.MoveToContent(); if ((this.reader.NodeType == XmlNodeType.Element) && (this.reader.Name == "rawdog")) { while (this.reader.Read()) { if (this.reader.NodeType == XmlNodeType.Element) { name = this.reader.Name; } else if ((this.reader.NodeType == XmlNodeType.Text) && this.reader.HasValue) { string str3 = name; if (str3 != null) { if (!(str3 == "version")) { if (str3 == "url") { goto Label_00ED; } } else { version = new Version(this.reader.Value); } } } continue; Label_00ED: fileName = this.reader.Value; } } } catch (Exception) { } finally { if (this.reader != null) { this.reader.Close(); } } if (Assembly.GetExecutingAssembly().GetName().Version < version) { if (DialogResult.Yes == MessageBox.Show("New Update Found! Do you wanna update now?", "New Update!", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { Process.Start(fileName); } } else { MessageBox.Show("No new updates!"); }