Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 21:33

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



how can i make auto update program

Discussion on how can i make auto update program within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2012
Posts: 106
Received Thanks: 27
how can i make auto update program

how can i make auto update program
zezo357951 is offline  
Old 06/09/2014, 16:20   #2

 
Nanoxx™'s Avatar
 
elite*gold: 15
Join Date: Feb 2013
Posts: 2,880
Received Thanks: 465
google.de OMFG
Nanoxx™ is offline  
Old 06/09/2014, 17:12   #3
 
elite*gold: 0
Join Date: Apr 2012
Posts: 106
Received Thanks: 27
i know but it tell you to make program tell if you have last version
i need to make one check version and download last version
zezo357951 is offline  
Old 06/09/2014, 19:58   #4
 
elite*gold: 116
Join Date: Feb 2014
Posts: 47
Received Thanks: 24
You can download a txt file with the newest version (for example 0.0.0.1)

Then you can read out the version of your exe.

Now you can compare both strings. If txt > versionexe then
DownloadFileAsynch("YourFile")



Greets
iL0v3SuN
TeamFAiTh is offline  
Old 06/09/2014, 23:24   #5
 
SquadZLeader's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 49
Received Thanks: 97
You need a webpage (share hosting or VPS or your own computer with port-forward ) which will check the version of the client everytime it load
Then compare with ur client version

If the version is higher then it take them to download link or auto download the new version and replace it over the old version

If no new version found then they will keep using that version
SquadZLeader is offline  
Old 06/16/2014, 15:30   #6
 
elite*gold: 0
Join Date: Jun 2014
Posts: 3
Received Thanks: 0
Get yourself a VPS or shared hosting.
Put some file on it with and include the latest file version (example: 15).
When someone starts your program, your program will visit that file and read the version.
If the program has older version number than the one in the file, it will download newer version and delete itself. In most cases you'll need two programs (an updater and a program of course )

edit:
if u need assistance then PM me
.

{m}
marooner is offline  
Old 06/23/2014, 23:00   #7
 
elite*gold: 0
Join Date: Sep 2013
Posts: 10
Received Thanks: 1
Upload a .txt and do something like this
Code:
        void GetUpdate() {
            int build = 1;
            String versionFromWeb = (new System.Net.WebClient()).DownloadString("http://www.lucidity.me/getVersion.php");

            if (build < Int32.Parse(versionFromWeb)) {
                MessageBox.Show("Update needed!");
                System.Diagnostics.Process.Start("updater.exe");
            }
        }
Note: this is pretty basic, you'll need to do error checks and stuff.

have updater.exe download the newest files and update that way. if it's a zip, backup the files and unzip, otherwise just backup the file you're replacing and download it with a webclient.
You can use CODEDOM to make an updater and delete it afterwords, or you can make a new project for the updater.
LukeSun is offline  
Reply


Similar Threads Similar Threads
[Help]Trying to make a console with auto-restart to update Configuration.ini
05/31/2013 - CO2 Private Server - 3 Replies
Hi... i try to build a console that auto-restart and update Configuration.ini for my server but it won't restart itself. Here is the code .... someone can help me plz?
How can make direct connect and auto update ?
04/08/2012 - SRO Private Server - 0 Replies
I've 8gb ram pc and i have server. But ppl can connect with hamachi. How can i make this direct connect like as vps? I forwarded all ports (i think). Im write ip 192.168... to ini files cert ok, global manager ok but machine manager, download manager etc. close accidently when i run'em. 2nd problem about auto update. It saysa damaged when update client at launcher ? Thanks. Up... upp
I need Auto party-Auto invite program
06/28/2009 - Silkroad Online - 3 Replies
Please do u have any program like this? Invites near players, makes party?



All times are GMT +1. The time now is 21:33.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.