First off you will need web server (xampp). I use xampp so i will explain how this works for xampp, it may be different for other web servers.
Download the Updater.rar file below and extract it into the correct folders.
Code:
The contents of htdocs go in your htdocs folder located in your xampp folder. C:/Program Files/xampp/htdocs The contents of the dekaron folder go in your dekaron folder (outside the bin and data folders). And the Update Creator folder can be place anywhere that you like (i.e Desktop)
Go to C:/Program Files/xampp/htdocs/update and locate your buttons.config file.
Here you can change what the buttons on the launcher will redirect the user to.
Code:
For instance set the url for your homepage and the name to Home, and when a user clicks home it will redirect them to your homepage.
And type the name of your server in the server.config file
Code:
url.config -- http://[your ip/domain name here]:80/index.html server.config -- Index,Name,Group,Select 0,[your server name here],0,0
Open your update.ini file.
Set your host ip. (Your server IP) and save.
---PART 2: Creating an Update!---
Open the Update Creator folder and open the 7z folder and delete the files there. do the same for the updata folder.
Go to your updata folder. This is where you will put the updates you want to implement in your server. Lets start with a very simple update.
Inside the updata folder, right click and click new and create a new text document. name it testupdate. write something in the test document. (doesnt matter what)
save it. go out into the update creator folder and run the update creator.exe
Click new update. once it has finished close the program and open your 7z folder.
You will see a new file(s) there. drag that file into your C:/Program Files/xampp/htdocs/update/00.00.00 folder. Rename that folder to 00.00.01
Open the history.config file and change the number to
Code:
00.00.01 1
Now, Go to your start your dekaron launcher and watch the magic.
You should see it says Update Successful 00.00.01.
---PART 3: Creating another update---
Once you apply an update you must leave the folders in the htdocs/update.
Lets try making another update this time editing that new file we just added.
Lets go to your dekaron folder and find the new file, copy it.
This time lets try putting it further into the dekaron folder.
go to your update creator/updata folder. create a new folder and name it
Code:
data
paste the text file into the share folder.
go back to the update creator and run the exe. (make sure your 7z folder is empty.)
Click on new update. Once it has completed go to your htdocs/update folder and create a new folder named 00.00.02
move the files in the 7z folder into that folder.
Then edit the history.config file again this time making a NEW line under your previous one.
should look like this now
Code:
00.00.01 1 00.00.02 1 [COLOR="Red"][B]<--- Remember this last number should represent the number of files you moved from your 7z folder.[/B] The launcher will only update the specified amount here.[/COLOR]
Now go check your work. Go to your data/share folder. and locate the new file there.
Congrats you have successfully learned how to auto update your client.
I don't know who to give credit for for the files so if you deserve credit let me know and ill be sure to give them to you =D
I didn't make any of the files here, all i did was make a tutorial on how to set it up. I hope I was able to help, press thanks if I did. Good luck.