Adding a Postflight Script that Removes Deleted Files from Computers

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

Note: This function is only available if a snapshot was used to create the package source.
  1. Open Composer and authenticate locally.
  2. Click the disclosure triangle next to the package source in the sidebar.
  3. Click the disclosure triangle next to Snapshots.
  4. Select the Deleted Files heading to view the deleted files captured by the snapshot.
  5. Control-click (or right-click) the Deleted Files heading and choose Add postflight Shell Script.

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

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