Developed By: Ertzel
This program can be used by anyone to automatically update files from a webhost to a computer.
Everything related to this launcher is coded in C# and was done by me for an engine I am working on. I decided to make the Launcher something that I could post on here for other people to use on their own Eclpse or non-Eclipse projects.
The way this launcher works is: You upload a checksum file to your webhost that holds the data to all of your files also on the webhost you wish to update (This file is created by the Checksum Builder included with the launcher). You then simple upload all of your files you wish to download to your host. (Files that go in a folder on the computer are to go in their own subdirectory with that folder name)
When the user first starts up the launcher it will download that checksum file you put online and will use it to check if your client has all of those files or not. If they do it will mark the status of that file as “Pending…” and if they don’t it will be marked as “Missing…” When the user clicks on the Update button it will scan through the list of files from that checksum file and if the file is marked as Missing it will automatically download it to the appropriate folder on your computer (It will create the folder if the path is missing). If the file is marked as Pending, it will then check the checksum value of that file from the checksum file compared against the value of the file the client already has. If the values match up it will be marked as Up To Date! and be skipped. If they do not match up it will replace the clients program with the one on your host.
How To Use
To use this launcher you will need access to a C# compiler as there are certain things you need to change. You will need to go to the frmMain.cs file in the Launcher solution and edit a few variables.
First change the downloadPath value to the full url of your host.
Next change the webNews.Url valye to the url of the webpage you will be using to display your news.
After that change client value to your clients name (and directory if its not in the base directory).
Then if you do not save your checksum file as Eclipse.checksum, you will need to change that anywhere where you see it in the source.
Finally any custom changes you want to make (like the layout or graphics).
Once you have done all of that, compile it and your ready to start using it.
To update you will want to create a folder (something like “Updates”) and place all of your files/folders into it. Then launch the Checksum Builder program and select that folder and click on Build Checksum (again, if you don’t name it Eclipse.checksum you will need to change that in the Launcher’s source). Once you have that file upload it and everything from your Updates folder onto your host. When you make any new updates just replace the current file with the new one in your host and replace the checksum file with the updated one.
Then send out your updater to your clients and they can begin using it! (if you didn’t include certain files needed to run your program into the updates then make sure you send them with the updater).
Example of a checksum file: http://pastebin.com/VBQqV8D7
! On Load
! Finished Updating
! Checksum Builder
! Download: (Coming soon…)