Adding a Postflight Script to a Package Source

Adding a postflight script to a package source allows you to remove deprecated or unneeded files from computers as they install the package.

  1. Open Composer and authenticate locally.
  2. Click the disclosure triangle next to the package source in the sidebar.
  3. Do one of the following:
    • To add a postflight script that removes deleted files from computers, click the disclosure triangle next to Snapshots. Then Control-click (or right-click) the Deleted Files heading and choose Add postflight Shell Script.
      Note: This function is only available if a snapshot was used to create the package source.
    • To add another type of script, Control-click (or right-click) Scripts and choose the script you want to add.

      The script is displayed under the Scripts heading in the sidebar.

  4. (Optional) Select the script in the sidebar to view or change its contents.