There are a few existing threads about putting the McAfee Agent install script into a package and creating a policy for deployment.
However, I have been having issues getting this to work. Full transparency I am not that well versed in scripting.
To install the McAfee Endpoint security software the McAfee agent needs to be installed by running a script.
We currently do this manually after imaging by doing the following:
Take install.sh file from flash drive and move to desktop
cd desktop sudo chmod +x install.sh enter password sudo ./install.sh -i
My hope is to create a policy that automates this and installs the Agent, and then have a second policy (or bundled into one) that installs the endpoint security software.
The biggest issue is that most of the existing threads, answers state, just add a post install script, however I don't know enough about scripting to just write one, or know what needs to be changed from a provided example. Also, our configurations create the main user account as a standard user and we have hidden local admin account, so the script would need to work in this scenario.
Check out https://www.jamf.com/jamf-nation/discussions/22204/mcafee-endpoint-security-for-mac lots of examples and different ways to do the same thing.
When running the installer from jamf, it runs as Root and not local user so you should be good there.
I just started running into a problem with install.sh not working on 10.15 after Apple started with the Read-Only stuff. The script wants to write there and can't so the rest of the script fails.