Minecraft Blogs / Tutorial

Updater In C#

  • 441 views, 1 today
  • 1
  • 0
A_Black_5tar's Avatar A_Black_5tar
Level 35 : Artisan Modder
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");
}
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome