I just installed vtiger on my system and was impressed by how it was able to install and configure mysql, php and apache, the copy the application's php files to the web folder. please, can anyone enlighten me on how to do this?

I know ioncube has an app that can do something similar, but how does one bundle the other apps with it and get the setup (.exe) application to configure everything. I also want to be able to bundle my apps with zend optimizer.