(Note: I really didn’t comment too much or really do TOO perfect on the code as it was a simple application and I decided at the last second to post on github… so enjoy)
Crafted for Juiced Game Engine (WIP)
So here’s a multipurpose auto updater I coded today, it’s kinda sleek. It includes a modifiable photoshop .psd file that you can create your own skins in, and the source will be uploaded later.
Here is a preview of the layout, like I said, you can modify it VERY easily…
How it works:
Create a directory on your computer of the update you will be making.
Place the UpdateGenerator.exe into the directory along with Newtonsoft.Json.dll
A file called updates.json will be created.
Upload the entire directory to an HTTP server (website server)
place Updater.exe, Newtonsoft.Json.dll, and the entire launcher folder (with all the files in it) into the root directory of your game client/application
Now, you will need to modify the config.json located in Launcher,
Navigate to and open <your application’s="" root="" directory="">/launcher/config.json</your>
modify the value that says** “UpdateURL” **to the URL directory of the **updates.json **you uploaded earlier (Example: http://www.mysite.com/updates) %C2%A0)
BE SURE THAT YOUR UPDATE URL DOES NOT HAVE A / AT THE END OF IT!
modify the value that says “Application” to be the application you want to launch after the updater is done. (Example: eclipse.exe)
That’s it you’re now done!
What it does:
The UpdateGenerator.exe generates a json file consisting of filenames and Checksum hashes. If a file doesn’t exist or the md5 hash on the client differs from the one on the server, it will automatically download the needed file. This stops the creation of different versions, which download the same files over and over to new clients, less to downloader, smarter choice.
Created in Visual Studio 2012 express, C#