- Install Java
- Set up a Scheduled Task to run a script every 5 minutes.
- Query ConfigService to get ServiceConfig.
- Parse ServiceConfig (what format is easiest to parse in bat files?)
- Check lastChanged field against stored lastChanged. If not identical, then
- Download files
- Stop service (if running)
- Uninstall service
- Install service
- Start service