how can i make auto update program

06/09/2014 14:57 zezo357951#1
how can i make auto update program
06/09/2014 16:20 Nanoxx™#2
google.de OMFG [Only registered and activated users can see links. Click Here To Register...]
06/09/2014 17:12 zezo357951#3
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
06/09/2014 19:58 TeamFAiTh#4
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
06/09/2014 23:24 SquadZLeader#5
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
06/16/2014 15:30 marooner#6
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 :p )

edit:
if u need assistance then PM me
.

{m}
06/23/2014 23:00 LukeSun#7
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.