"Automatic" updater
#1
Posted 03 March 2014 - 02:23 PM
In version X2077, I have added an "automatic" updater. For the moment, it is very basic, and is only enabled on my nightly builds. It is triggered by the presence of the "Updater.ini" file which, for the moment, simply specifies which URL to fetch to check for updates.
If an update is found, a link is shown on the main menu. Upon clicking it, the update is downloaded, extracted and "installed". For the moment, this only works if you have write access to your Open Rails installation (it checks this first). It then provides a second link, which starts the menu from the new version and cleans up the left-over update files.
This is very experimental. There are many things which can go wrong, may not be handled correctly yet, or could be improved. Options to configure the updater will be provided soon.
Please let me know if you have any issues (it should display an error message if anything unexpected occurs) or suggestions for further functionality.
If an update is found, a link is shown on the main menu. Upon clicking it, the update is downloaded, extracted and "installed". For the moment, this only works if you have write access to your Open Rails installation (it checks this first). It then provides a second link, which starts the menu from the new version and cleans up the left-over update files.
This is very experimental. There are many things which can go wrong, may not be handled correctly yet, or could be improved. Options to configure the updater will be provided soon.
Please let me know if you have any issues (it should display an error message if anything unexpected occurs) or suggestions for further functionality.
#2
Posted 04 March 2014 - 03:33 PM
Hi James,
Works for me - no issues - so much better than the countless manual downloads - thanks so much...
:sign_welcome:
Regards,
Scott
Works for me - no issues - so much better than the countless manual downloads - thanks so much...
:sign_welcome:
Regards,
Scott
#3
Posted 05 March 2014 - 03:54 AM
Sounds like a fantastic idea to me. :sign_welcome:
:oldstry:
:oldstry:
#4
Posted 10 March 2014 - 12:03 PM
#5
Posted 10 March 2014 - 02:01 PM
#6
Posted 22 March 2014 - 04:24 AM
Is there any way for the Automatic Updater to automatically make the switch between "RunActivity.exe" and "RunActivityLAA.exe"?
David
David
#7
Posted 22 March 2014 - 04:49 AM
That's not really related to the updater; we could, instead, add a menu item to run RunActivityLAA instead of RunActivity.
#8
Posted 22 March 2014 - 05:12 AM
#9
Posted 22 March 2014 - 06:23 AM
I back that. There could be somewhere in the options one stating which one of the .exes is started.
#10
Posted 24 March 2014 - 01:21 PM
Okay, so there's now an experimental option to use the large address aware binary instead in X2120 - it'll automatically fall back to the normal version if the LAA one does not exist (e.g. you're running from Subversion and/or have built the source code yourself).
I've also made some tweaks to the updater to allow for controlling the frequency of update checks, which I'll be utilising in the soon-to-be-enabled weekly experimental auto-updating.
I've also made some tweaks to the updater to allow for controlling the frequency of update checks, which I'll be utilising in the soon-to-be-enabled weekly experimental auto-updating.