+ Start a Discussion

Installation User of managed Package?

Normally we get ghost user when we installed a managed package, Is there a way I can get the name/profile of the logged-in user who installed the package? I have checked some articles which says that there are some package properties as 'Installed By' or 'Created By' . But how to access these in Apex. 
What I want is : I want to enable certain parts of my application which is either accessible by Admin-profile or by the user who istalled the package?

ShashankShashank (Salesforce Developers) 
You may have to use the metadata API in apex to get the necessary details of the package.

These links may help in understanding how to do it:
This gives following error

Error: Compile Error: Invalid type: MetadataService.MetadataPort