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() {
          .......


        }


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

1 Answer 1

4

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .