Zuu wrote:I've coded a small application that basically follows the steps that belugas wrote earlier in this thread.
It depends on Info-Zip exe-file which is included in the zip-file. (as allowed by the Info-Zip license)
Put it in your OpenTTD-directory or tell it where OpenTTD is installed using the browse button.
It should not depend on .NET as far as I am aware.
-- Beta 2 --
* Does include an option to ask before overwriting files when unzipping.
* Shows the output of unzip.exe to allow users confirm overwriting.
* Works with paths that contain spaces.
-- Beta 3 (2007-07-15)--
* Fix: Releases the changes.log files after reading it.
* Feature: Stores the path to OpenTTD in a ini-file: conf.ini located in the same directory as the program. The status of the checkbox (not in the beta1 picture) is also saved in the ini-file.
* Feature: If parameter '/auto' is given, the program will check for updates and if any updates are found it asks for confirmation. And after that it starts OpenTTD. (currently the window is not hidden, but that is on my ToDo-list
)
-- Beta 4 (2007-08-18) --
* Fixed /auto bug that raised an exception/assertion at startup.
* Old GUI removed.
* New GUI let users configure OpenTTDAutoUpdate and then update OpenTTD.
* Check box to skip configuration dialog at startup.
* Now visually indicate that downloading is in progress, when downloading latest nightly. (useful on slower connections where download takes longer than a second or two)
* Show either progressbar-window or confirmation window when unzipping OpenTTD, not both.
-- Known Glitches --
* Will throw an exception if it can not save the downloaded zip-file to the OpenTTD directory.
Usage
Quick start
* Download zip-file
* Unpack it and place the ziped files directly in your OpenTTD dir. (no subdirectory)
* Make a shortcut on your desktop to OpenTTDAutoUpdate.exe
* Now when you want to play the last nightly use this new shortcut you just created instead of your old shortcut to openttd.exe.
Note: You _can_ put the unziped files anywhere you wish as long as you place all files in the same directory. You will be required to tell where your OpenTTD nightly install is located though.
What is it doing?
1. Display the configuration every startup until you get pissed of and check the lower left check box that disables the configuration window.
2. If there is a nightly available with higher revision number than the one you have installed then it will ask you if you want to upgrade. If you say no or if there is no newer revision available it will keep your existing installation untouched and continue to point 5.
4. Downloads last nightly zip-file and then unpacks it in the configured OpenTTD directory. If "Ask before overwriting" have been checked the unzip program will ask you before it overwrites any existing file.
5. Start OpenTTD.
6. Exit OpenTTDAutoUpdate, just after OpentTTD have started. So it will not waste your memory while you are playing.