Been batting this one around for a few weeks, and finally discovered that Citrix has silently put in a mechanism to deal with their faulty script. The script runs properly when double clicking a pkg, but fails when run from management. To get around this, the installer looks for an Installing user parameter in a text file that we will happily provide using JAMF built in variables.
- Put Install Citrix Receiver 12.8.pkg as the package payload.
- Create a script with the following and add it as a script payload to run BEFORE:
#!/bin/bash
#########InstallOptions.txt creation
cat > /Library/Application Support/Citrix Receiver/InstallOptions.txt <<EOF
INSTALLING_USER=$3
EOF
Policy must be either self service or login trigger due to the use of $3 variable.
I hope this helps, I know I was pulling my hair out.
thanks to mark_lamont on macadmins slack for the info.
