The App Center allows several scripts that are executed in different contexts during app installation and with parameters. The App Provider documentation should list those scripts with their context, function and parameters.
*** This bug has been marked as a duplicate of bug 48527 ***