I developed an installation profile that contains many various hooks. After an installation process, it is still included on every page, and all my installation hooks are executed. Please explain me why it happens, and by which way I can avoid including *.profile file after the installation.
This is a new feature of Drupal 7: install profiles behave like modules.
Code that you don't want loaded during run-time should be moved to hook_install().
Edit - Xio asked about uninstalling a profile. variable_set('profile', 'standard'); might work.
Drupal will not include installation files after installation by default.
The best reason I can give to this problem, would be some custom code toy have made includes the files. With the limited information you have provided it's hard to answer with more detail.
If you want to "uninstall" a drupal install profile, this can be done by deleting the
You should be aware that doing this will not allow you to use modules located in your install profile folder like you normally can when using install profiles.