Game installations should maintain an index of their content
To better support future improvements to the application servicing process game installations should have a file which maintains an index of all the files associated with that installation.
This could be used in the following scenarios;
- Repair install (diff 'expected checksums' vs actual)
- Update install (to identify files to be removed)
- Import game (to identify the version of the game being imported)
- Uninstall game (to ensure we can perform this operation without needing to be online to fetch a list of the files we own - presently this is bodged by simply nuking the game folder entirely, in the assumption that we own it - has the unfortunate side effect of nuking mods, etc the player may wish to keep)
Generally though, it's a good idea to have a local record of what files we installed for a given game. This should be placed into the games install folder, which will be protected with admin rights (if in the default Program Files location) to avoid tampering by non-admin users. This means, once the launcher loses admin rights, only the servicing stack will be able to modify it (as desired)