Personally I think this feature will be very good for end users who just want to get started running their business without having to meddle in any kind of installer issue. It will be a very good feature business wise.
According to my reasearch, the closest I can think of are
1. Softaculous
2. Installatron
3.Simple Scripts
All the above applications follow the same processes.
User input
a hosting information
b. server information for db connection and creation
c. Allow user to customise site and then start the installation.
The best tutorial that can give you some ideas on implementation of such a feature is WAMP DEVELOPER PRO WEBAPP AUTO INSTALLER