I have a managed package that can be installed in multiple organization types. Attempting to use the following query causes install failure when used in my postinstall script.
[SELECT OrganizationType from Organization LIMIT 1]
Is it possible to get the organization type in a postinstall script so that I can enable/disable necessary features?
Update: What I really need to know is if my package has been installed in a Professional edition org. I can do without actually knowing the type.