Create a Package
- From Setup, enter Packages in the Quick Find box, then select Packages.
- Click New.
- Enter a name for your package. You can use a different name than whatappears on AppExchange.
- From the dropdown menu, select the default language of all componentlabels in the package.
- Optionally, choose a custom link from the Configure Custom Link field to display configuration information to installers of your app.You can select a predefined custom link to a URL or s-control that you have created foryour home page layouts; see the Configure Option. The custom link displays as a Configure link withinSalesforce on the Salesforce AppExchange Downloads page and app detail page of theinstaller's organization.
- Optionally, in the Notify on Apex Error field, enterthe username of the person to notify if an uncaught exception occurs in the Apex code.If you do not specify a username, all uncaught exceptions generate an email notificationthat is sent to Salesforce. This option is only available for managed packages. For more information, see Handling Apex Exceptions in Managed Packages.Note Apex can only be packaged from Developer, Enterprise, Unlimited, and Performance Edition organizations.
- Optionally, in the Notify on Packaging Error field, enter theemail address of the person who receives an email notification if an error occurs when asubscriber’s attempt to install, upgrade, or uninstall a packaged app fails. This fieldappears only if packaging error notifications are enabled. To enable notifications,contact your Salesforcerepresentative.
- Optionally, enter a description that describes the package. You can changethis description before you upload it to AppExchange.
- Optionally, specify a post install script. You can run an Apex script inthe subscriber organization after the package is installed or upgraded. For moreinformation, see Running Apex on Package Install/Upgrade.
- Optionally, specify an uninstall script. You can run an Apex script in thesubscriber organization after the package is uninstalled. For more information, see Running Apex on Package Uninstall.
- Click Save.