the auto update tool should be as general as possible to cover as big upgrade as possible.
one idea is like that:
1- every 1 hour, check server name from config file.
2- download update package
3- check md5
4- backup current installation using previous version backup script
5- read and execute the upgrade script from the new package
6- wait to check stability.
7- if something wrong delete the current package using uninstall script included in the current package and restore the old package using the restore script in the backup folder
8- how cool is that?