The install and uninstall scripts are executed in the webapp directory for the app, say. The install script should do ''everything necessary'' to make an app work out of the box. Simple as that. :) Say, for application
foobar
The script is run inthis directory
/var/hda/web-apps/foobar