When installing a software using terminal, I use this command:
sudo sh ~/Desktop/cbdefense_install_unattended.sh -i "/Users/name/Desktop/CbDefense |
Install.pkg" -c COMPANY CODE
Company code being the access code. It installs perfectly, silent, and the software communicates with the agent.
Now, since it successfully installs I used the Snapshot tool from Casper Composer. Took snap shots before and after installation. It then compiled the changes into a .pkg.
I can install the .PKG to a target device using terminal or remote command and it works but does not communicate with the agent.
Since Snapshotting is not working, I need to know how I can repackage the .pkg with the company code within it, so when it is deployed using Casper it can work on all targeted devices.
Details would be greatly appreciated.

to show the scripts portion under your package you can add a post install script and put the