Post: [1.XX] Auto updater [C#](Form, no dll)
05-24-2014, 03:27 AM #1
ByteSource
League Champion
(adsbygoogle = window.adsbygoogle || []).push({});
Hey NGU,
today i decided to post this here sense black ops 2 gets updated more than any other cod and its kinda annoying when people make multi threads for the same tool but different update.


Mods: There is no reason to move this thread considering that this is based on tool coding + mod menus.

    using System.Net;

    
{//When Form loads the application downloads latest version string, if the string does not match
//the Form gives a message before opening.
WebClient BTM47 = new WebClient();//Webclient
var Main = BTM47.DownloadString("YOUR FILE SERVER URL");//Retrive Update log
if (Main.Contains("1.1.6"))//Last version 1.1.3 on the application | may be different in server.
{
//EX:
MessageBox.Show("Godmode has been added to the tool on update 1.16");
}
else
{
var Sub = MessageBox.Show("Would you like to Update?",//Index,
"Latest Version \""+Main+"\"",//Title,
MessageBoxButtons.YesNo,//Yes or No buttons,
MessageBoxIcon.Information);//Icon,
if(Sub == DialogResult.No){this.Close();}//If No clicked program closes."NOT EXIT"
}
}

Before anyone comments something dumb, this is something simple and works 100% so there's no reason to hate.
Including that this can be used on FormLoad or A Clicked option.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 7 users say thank you to ByteSource for this useful post:

Geo, JLM, iNDMx, Kappa, moxl, Mx444, xMrJR
05-24-2014, 11:13 AM #2
xXcodgmRTE
Climbing up the ladder
where do i put this in my form just any where in the code
05-24-2014, 11:21 AM #3
Geo
Don't Believe The Title
bro thankyou so much :P great post and really useful, will play with this later
05-24-2014, 03:32 PM #4
ByteSource
League Champion
Originally posted by ReaperLobbies View Post
where do i put this in my form just any where in the code


Form Load:
when you double click the form it should be Private void Form_Load() something like that.
when the app loads it searches for the document in your web host, if they match theres no update, if they don't match then it will give you a message before it opens.

Label, button, icon, etc..:
When you click on a object for Ex: a label saying "Check for updates" it will do the same as the form load but differently.

heres a example of what i got, you must know how to code a link down loader witch isnt hard. NOTE: i have yet put it in there so dont look for it Winky Winky

You must login or register to view this content.
05-24-2014, 03:33 PM #5
ByteSource
League Champion
Originally posted by geo71966 View Post
bro thankyou so much :P great post and really useful, will play with this later


your welcome, but i dont see how you can play with this :p
05-24-2014, 03:38 PM #6
Geo
Don't Believe The Title
Originally posted by TehK9
your welcome, but i dont see how you can play with this :p


Haha lol :p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo