Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Mohenjo Daro's Updater Tutorial: Setup Config

Recommended Posts

**This tutorial will teach you how to setup the Config.xml file for your game/program.**

I recommend using Notepad++ to open and edit all the Updater's XML files.

![alt text](https://s26.postimg.cc/h2jjw29p5/ER_Updater.png)

The Config.xml file is located in `\data\Config.xml`.

![alt text](https://s26.postimg.cc/do5ytq149/Config_Location.png)

Link to the below code: https://pastebin.com/Bn5sL7Gp



Eclipse Renewal\client\Eclipse Renewal.exe
Eclipse Renewal\server\Eclipse Renewal Server.exe




`` This is the link to your version history
`` This is the local version
`` This is contains which are the executable names from the updater folder
`` This is if the updater closes after launching the executables
`` This is used to tell the updater whether to run the programs it launches with Admin Permission
`` This is what language the updater will use
`` This is the current skin the updater will use


**Setting up the config for your own game:**

This should look something like this: `https://pastebin.com/d4sUURuC`
The link in the node is to the version history (it's ER's in this case).


#### ****
Just set this to **0.0.0** so it will look like this: `0.0.0`


#### ****
This should include the path leading to the executable for the Updater to launch. The path should be from the folder the updater is in to the exe.
If the full path is
`C:\Users\User Name\Desktop\Program Updater\Eclipse Renewal\client\Eclipse Renewal.exe`
Then the field will look like
`Eclipse Renewal\client\Eclipse Renewal.exe`


#### ****
You will most likely want this to be true. It will close the Updater after the user launches the executables. So it will look like this: `True`


#### ****
You normally won't need this to be true, but if your program or game needs admin permission to function correctly, put this as True.


The rest of the nodes don't need to be changed by you, the Updater will change them itself (that functionality will be added in one of the next updates).
Link to post
Share on other sites
  • 1 month later...
Hey Mohenjo, anyway to force updater to open the game has a administrator after complete? because my game can only run in administrator, my anti cheat block, so i tested and cant open after update... i added manifest into my game.exe and everything ok, but the updater still does not recognize and open without administrator.
Link to post
Share on other sites
@ollixsykes Right click the updater exe, click Properties, Compatibility, and select Run as Administrator. Then, try to run the updater and see if it launches the game as an administrator.

Also, I don't know if there will be a prompt if the updater launches the game with admin permission when the updater is run with admin permission.
Link to post
Share on other sites
The updater launches in administrator, but the game does not, still no asking permission after click on launch button.

If there's no way, no problem, i will remove Launch button, and add 2 shortcuts on desktop, game and updater in installer. But if you have any other ideas about it I'll be happy to read.
Link to post
Share on other sites
@ollixsykes Alright, I added a new `` node to the config and the tut, it should be pretty clear. By default it's blank or false.

I also changed a lot of the self updating code so there should be less bugs with it. You will have to do 1 of 2 things to get the updater to update properly...
1) [Redownload](https://www.dropbox.com/s/bx42wr50lh6z8ug/Program%20Updater%20v1.0.0.rar?dl=0) the updater and replace the new `\data` folder with the old one. (Once you run the updater, the `` node will be added to the config).


2) Rename the updater exe to `Program Updater.exe` and the updater exe.config file to `Program Updater.exe.config`, run it and let it update, and rename it back to whatever you want (you won't have to rename it again).

Sorry about this bug requiring more work than normal to update. This should be the last time you have to do anything other than start the updater to update the program.
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...