This is probably a little rough still, but here's some more-or-less
complete documentation on writing your own installer:
http://svn.icculus.org/*checkout*/mojosetup/trunk/docs.txt
If you find places that need clarification, let me know.
--ryan.