Hi All,
i am having great difficulty deploying McAfeeSmartInstaller.sh to machines running MacOS Catalina and Big Sur. Some may not be using the McAfeeSmartInstaller.sh but the installer.sh script with some success. I am unable to find where this installer.sh sits on the ePO as it always downloads the McAfeeSmartInstaller.sh
I've found many articles as to why the installer isnt working on the most recent OS which are:
- About the read-only system volume in macOS Catalina - Apple Support - Apple created a read-only volume from Catalina also noted in thread Solved: Problem deploying McAfee EPO to bigsur - Jamf Nation Community - 241670
- Deploying McAfee products with Jamf Pro software - there's an existing bug located in the McAfeeSmartInstaller.sh on Line 5 that needs to be changed to From temp_directory=`sudo mktemp -d McAfeeSmartInstall_XXXXXX` To temp_directory=`sudo mktemp -d /tmp/McAfeeSmartInstall_XXXXXX`
- Smart Installer displays a password logon prompt in silent mode (mcafee.com) - disabling the admin prompt when the installer is running by changing line 45 and 46, and set the Absolute path, instead of the symbolic link: From:
sudo cp -f $temp_directory/coninfo.xml /tmp/coninfo.xml
open -W -a "$temp_directory/$APP_FILE_NAME" --args -c "/tmp/coninfo.xml" "$@"
To:
sudo cp -f $temp_directory/coninfo.xml /private/tmp/coninfo.xml
"$temp_directory/$APP_FILE_NAME/Contents/MacOS/McAfeeSmartInstall" -c "/private/tmp/coninfo.xml" -s -g
None of which seems to resolve my issue.
Scenario 1:
I created a postinstall script to run in the package i created which dumps the McAfeeSmartInstaller.sh in the /private/tmp directory. Permission on the /tmp is 777 and the file is 755. The post install script was taken from McAfee-Agent/postinstall.sh at master · franton/McAfee-Agent · GitHub with changes to reflect my environment. I try executing the package locally i receive the error
Creating temporary directory...
chmod: /private/tmp/PKInstallSandbox.UxwMKL/Scripts/mcafeeenterpriseagent5.7.3.t6Z7Wv//tmp/McAfeeSmartInstall_YMWT0Q: No such file or directory
If i change line 5 to temp_directory=`sudo mktemp -d McAfeeSmartInstall_XXXXXX` the installer hangs (package installation) at installer[11292]: PackageKit: Enqueuing install with framework-specified quality of service (utility). If i execute the McAfeeSmartInstaller.sh directly from terminal everything works as expect. This is the same when using JAMF remote to execute the package. When i try to execute using the policy it fails on creating a temporary directory. So JAMF is executing it differently in different scenarios.
At this point i am completely stuck on how to fix this issue. i have tried numerous fixes which i did not explain to keep the thread short. Has anyone came around to resolving this issue.