only execute hook when full profile is installed.

the hook might import parts of the profile, which will loop.
this is common in hooks adding catalog indexes.