Posted on 03-08-2023 01:00 AM
Hi All
We recently enabled Auto-Enrollment on our Jamf Now and started testing our some auto-installed apps.
One of the apps we are installing automatically is the Trend AV solution however it seems to keep on failing for some unknown reason. See below
Install didFailWithError: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “WFBS-SVC_Agent_Installer.pkg”." UserInfo={NSFilePath=./preinstall, NSURL=#tmsecurity.pkg -- file:///var/tmp/TrendMicro/WFBS-SVC_Agent_installer.pkg#Distribution, PKInstallPackageIdentifier=com.trendmicro.tmsm.application.trendMicroSecurity.tmsecurity.pkg, NSLocalizedDescription=An error occurred while running scripts from the package “WFBS-SVC_Agent_Installer.pkg”.}
Aslo ,
/tmp/PKInstallSandbox.taKqhy/Scripts/com.trendmicro.tmsm.application.trendMicroSecurity.tmsecurity.pkg.HMedNp/preinstall: line 261: ./PE_InstallPluginPane: Bad CPU type in executable
Any idea how this can be fixed?
Note that this app has been signed off with the apple certificate signature and installs quite fine when you manually add the device to the open enrollment option
Posted on 03-08-2023 01:12 AM
Guessing.. device is M series, Rosetta not installed and Trend is intel / not universal?
Install Rosetta 1st, then AV
Posted on 03-08-2023 01:35 AM
The device is a M1 series yeah and just found the possible fix.
When the device booted up I ran the Rosetta install via terminal did a reboot and guess what Trend installed.
You perhaps don't know where we can get a auto pre loaded script for Rosetta?
Posted on 03-08-2023 01:41 AM
#!/bin/bash
arch=$(/usr/bin/arch)
if [ "$arch" == "arm64" ]; then
echo "Apple Silicon - Installing Rosetta"
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
elif [ "$arch" == "i386" ]; then
echo "Intel - Skipping Rosetta"
else
echo "Unknown Architecture"
fi
Posted on 03-08-2023 02:29 AM
Amazing thanks
Will give it a go!
😎
Posted on 03-08-2023 02:34 AM
Is this script able to be run via Now or only Pro?
Posted on 03-08-2023 02:49 AM
did not see it was JAMF Now.. erm.. not used in forever.. can you make a payload less PKG and add the script to it.. someone with more JN experience will need to chip in..
Posted on 03-08-2023 02:56 AM
I checked now and saw that you need to have Jamf Pro in order to run macOS scripts lol
But yeah I think I'll give it a dash and configure the PKG perhaps to see if that works. Will post that on another thread.
Thanks again