We have a WHMCS auto install module through a user can choose a script which he wants to install and when the account is created he will get the script installed as well.
Here is the guide on how to configure this module:
http://softaculous.com/docs/WHMCS_Auto_Install_Module