---
schema_version: "1"
id: 8a8cdef3a57bafc28d71e1dede99d275678fa5f417c999dfd84750714fc46315
title: Specifying a Post Install Script
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform-pkg-exchange/managed_packaging/guides/first-generation/apex-post-install-script-specify.md
canonical_url: https://developer.salesforce.com/docs/platform/pkg1-dev/guide/apex-post-install-script-specify.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 51d3cd28a75a16f3f58950dd670194fe263c979046016fb26f5da86730259a98
products:
  - First-Generation Managed Packaging Developer Guide
  - merged-docs
---

# Specifying a Post Install Script

After you’ve created and tested the post install script, you can specify it in the **Post Install Script** lookup field on the Package Detail page. In subsequent patch releases, you can change the contents of the script but not the Apex class.

The class selection is also available via the Metadata API as `Package.postInstallClass`. This is represented in package.xml as a `<postInstallClass>foo</postInstallClass>` element.
