I just realized that we (ISPconfig3 users) actually all ready have a custom-made website installation system in place. It's called Backup/Restoration option. No, no hear me out. I'm being serious here for one's. It would not be a big job to modify the Backup/Restore system to allow Restoration from "common system" folder instead of the normal customer backup folder. This would allow easy installation of custom-made web-sites. All right. Now you can start the ridicule.
I thin it will be easier to just make a new plugin that ataches itself to the web insert even, if you want to do some kind aof automaic preinstall. The backup feature would be able to copy files, but the website config would be wrong as all sites would get wrong database credentials etc. the backup feature would only work for pure gtml pages without a database.