35
This is the code for the Updater in C#.
I'm doing thisin caseany new programmers in C# are trying to make a updater for there program. You need a server a place to store a update.txt file.
WebClient UpdateFile = new WebClient();
string Update = UpdateFile.DownloadString("URL");
string CurrentVersion = Application.ProductVersion;
if(CurrentVersion.Contains(Update))
{
MessageBox.Show("There is no update.");
}
else
{
MessageBox.Show("There is a update");
}
I'm doing thisin caseany new programmers in C# are trying to make a updater for there program. You need a server a place to store a update.txt file.
WebClient UpdateFile = new WebClient();
string Update = UpdateFile.DownloadString("URL");
string CurrentVersion = Application.ProductVersion;
if(CurrentVersion.Contains(Update))
{
MessageBox.Show("There is no update.");
}
else
{
MessageBox.Show("There is a update");
}
Tags |
tools/tracking
2479815
6
updater-in-c
Create an account or sign in to comment.