This code is in version 1. I hope you understand my English and my code.
This code is very useful to update your application:
using System.Windows.Forms;
using System.Net;
using System.IO;
using System.Diagnostics;
using System.Thread;
static void update()
{
StreamReader versionread;
Uri url = new Uri();
Uri updateurl = new Uri();
int intVers = 0;
WebClient update = new WebClient();
update.DownloadFileAsync(url,);
while (update.IsBusy)
{
Thread.Sleep(1);
}
versionread = new StreamReader();
intVers = Convert.ToInt32(versionread.ReadLine());
if (intVers > )
{
update.DownloadFileAsync(updateurl, );
while (update.IsBusy)
{
Thread.Sleep(1);
}
MessageBox.Show("Update sucessfully");
Process.Start();
Close();
}
else
{
MessageBox.Show("No Version available");
}