Mohenjo Daro Posted December 29, 2017 Author Share Posted December 29, 2017 **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``` https://pastebin.com/d4sUURuC 0.0.0 Eclipse Renewal\client\Eclipse Renewal.exe Eclipse Renewal\server\Eclipse Renewal Server.exe True False English Default\Default.xml````` 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 comment Share on other sites More sharing options...
ollixsykes Posted February 18, 2018 Share Posted February 18, 2018 Wow really easy to config, good job my Lord Mohenjo, i'll try it right now. Link to comment Share on other sites More sharing options...
Giukko Posted February 18, 2018 Share Posted February 18, 2018 Thanks :)) !!! Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted February 18, 2018 Author Share Posted February 18, 2018 @ollixsykes I tried my best to make it as simple as possible :) I'm glad I succeeded@Giukko No problem, I wanted to help devs by making an updater they can use Link to comment Share on other sites More sharing options...
ollixsykes Posted February 20, 2018 Share Posted February 20, 2018 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 comment Share on other sites More sharing options...
Mohenjo Daro Posted February 20, 2018 Author Share Posted February 20, 2018 @ollixsykes Try running the updater in admin mode and see if that launches the game in admin mode. If that doesn't work, I'll see about adding an option for it in the config, but the updater will have to run in admin mode for that to work as well (as far as I know). Link to comment Share on other sites More sharing options...
ollixsykes Posted February 20, 2018 Share Posted February 20, 2018 I tried, but it did not work, he start the .exe (on launch button) without asking permission. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted February 20, 2018 Author Share Posted February 20, 2018 @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 comment Share on other sites More sharing options...
ollixsykes Posted February 20, 2018 Share Posted February 20, 2018 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 comment Share on other sites More sharing options...
Mohenjo Daro Posted February 20, 2018 Author Share Posted February 20, 2018 @ollixsykes There's a way, I was just curious if I had to add an option for it or if there was currently a way to do it. I'll get to adding the admin permission tomorrow (the updater will auto update so you won't have to redownload it) Link to comment Share on other sites More sharing options...
ollixsykes Posted February 20, 2018 Share Posted February 20, 2018 Great, I'll be waiting. Thank you! Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted February 21, 2018 Author Share Posted February 21, 2018 @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).Or2) 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 comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now