Hey.

As promised, here is a new windows update script for you :)

Notes:
- So far its hard-coded for XP. If run on anything else it will refuse to even try updating. I dont have access to any non-XP machines, so if you want me to add support for anything else, i need some feedback :)

- As this script will update itself as well,
https://emu.freenetproject.org/svn/trunk/apps/installer/installclasspath/windows/update.cmd *must* be updated as well (assuming you are satisfied with this ;)). If its different than the local copy, the local copy will be overwritten.

- The updater should be pretty solid, fool-proof and 404-safe, as long as the sockets dont die in mid-download *cough* (/me leaves that to wget)...

- The local update script and snapshot link files are named "update.cmd" and "freenet-cvs-snapshot.jar.url". The temporary ones downloaded are named "update.new.cmd" and "freenet-cvs-snapshot.jar.new.url" (though the updater should wipe them once it's done using them).

- Freenet will only be restarted (using stop.cmd and start.cmd) if an update is available (so this script can be scheduled without problems)

- Tested as much as i found possible locally, but i might have missed something, if so, let me know.

- Well, tell me what you think... :P

http://www.zerosplayground.dk/stuff/update.cmd

~Zero3Cool
_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to