// For this to work you must name your files correctly
int version = 1; //<---Version Number
int nextVersion = version + 1;
private void Form1_Load(object sender, EventArgs e)
{
//Checks your site for your file and sees if it exists
Uri urlCheck = new Uri("http://www.YourSiteHere/Downloads/MyAppVersion" + nextVersion + ".zip");
WebRequest request = WebRequest.Create(urlCheck);
request.Timeout = 15000;
WebResponse response;
try
{
response = request.GetResponse();
MessageBox.Show("There is a newer version of this product would you like to download it?");
}
catch (Exception)
{
// This is if the file doesnt exist
// MessageBox.Show("No new updates.");
}
}
I hope you guys like it.
I also hope i explained it good enough.
See ya.

Sign In
Register
Help



MultiQuote



