I have a managed package with a PostInstall script, however I'm having trouble accessing custom objects within it.
Apon installation, I get the following error notification email
System.QueryException: sObject type 'mypackage__Settings__c' is not supported.
The line referenced in the exception is a normal SOQL query against a custom object in the package
Settings__c = [SELECT Field1__c, Field2__c FROM Settings__c LIMIT 1;
Is there any reason why I shouldn't be able to access custom objects in the PostInstall script? It appears to work in other places.