3

I wrote a post-installer which is aimming to deploy some DB records once users install our unmanaged pkg.

The data is not deployed to the database as expect.

However, we can execute the method manually.

E.g: TestTemplatesInstaller.setupTestAdminConfiguration();

everthing will work fine by doing so.

I believe we missed some setting for the installhandler?

Any idea?

    global class TestTemplatesInstaller implements InstallHandler {

        global void onInstall(InstallContext context) {
            setupTestAdminConfiguration();
        }


        global static void setupTestAdminConfiguration() {
          .......


        }


    }
  • Did you set the post install option on the package? – Eric Feb 3 '18 at 22:15
  • @Eric is there any way to setup post install option for the unmanaged pkg? – newBike Feb 4 '18 at 1:32
4

Post Install only works for the managed packages and do not run for the unmanaged packages .Check the official docs here .

  • then, that's too bad. is there any workaround can execute a script when users install the unmanaged pkg? thanks so much! – newBike Feb 4 '18 at 1:33
  • 1
    please open a new post for any follo wup questions. Thanks! – glls Feb 4 '18 at 20:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.