Like Adrien, I read somewhere (one of the developers of the VS installer) that the external interface is actually a normal application, and then runs several MSI (wix built) installers for the components / prerequisites.
There are sample project code showing how to create .net installers.
source
share