Yes, it's managed by setup.xml (default), note that in the installer there are some others xml files.
You can exec the run file from promtp with the option "--keep" and explore the folders, setup.data and setup.sh are the important.
Take a look to the cvs loki_setup tree, specially
Setup.xmlThe rest, checkboxes, ... is done by setup