I assume you're trying to get Sophos Cloud installed from what I gather?
Here's what we do
- Create a folder called sophos inside of /private/var/tmp (eg /private/var/tmp/sophos)
- Download your Sophos installer from cloud.sophos.com. Take the contents of the download and copy it to /private/var/tmp/sophos (copy Sophos Installer.app and Sophos Installer Components folder).
- Drag and drop the sophos folder into Composer. Make sure permissions are correct from the parent folder.
- Open the package source on the left to show the Scripts folder and right click on Scripts.
- Right click on Scripts and choose Add Shell Script > postinstall.
- Use my postinstall script as a guide:
#!/bin/sh
## postinstall
#
# Created using this Sophos KB article:
# https://community.sophos.com/kb/en-us/14179#v9.2+
#
sudo /private/var/tmp/sophos/Sophos Installer.app/Contents/MacOS/Sophos Installer --install;
#
# Remove installer
/bin/rm -rf /private/var/tmp/sophos;
exit 0 ## Success
exit 1 ## Failure
Hope this helps. It works as a normal pkg for Casper or ARD.