Update wizard
What does it do?
When the update check tells you that a new version is available, you start the update wizard . The wizard shuts down XH and runs on its own system . Then it downloads the zip of the new version. This zip contains an update instruction for the wizard. With this update instruction no special update zip is needed, one zip is OK for updates and new installations.
The update instruction contains:
- The minimum version to start the update from
- The new files/folders tp be updated (New from 1.6.0: ..., from 1.6.1: .... from 1.6.2)
- The files/folders to be deleted (Delete from 1.6.0: ... from 1.6.1: ....)
- The files not to be changed in an update (log files .... etc.)
- The files to be adjusted (language files, config files)
If permissions are there, the wizard makes a backup of the system (without userfiles + content) and executes (1) till (4) automatically. For (5) a comparision is presented of old values versus new values wherever the values differ, together with a button "keep old value" for every such field.
Everything done the wizard starts the new XH. If XH doesn't work, there should be a possibility to start the wizart even with XH being unable to start (e.g. mysite.xx/updatewizard) to reinstall the backup .