Trend Micro Apex One - Install on mac via dmg

rael
New Contributor II

Hello!

I'm trying to deploy the apex one agent to our macbooks through a policy in jamf pro.

At the moment its being done by using a .dmg with the following contents:
- .pkg (installer)
- one folder with subfolder "conf" and a .plist file

as well as this script provided by jamf:
installPKGfromDMG.sh

The scripts works as it should, but unfortunately only the .pkg file is copied and installed when the script is executed. The folders are being ignored - however, these are required for the agent to connect to the server and should be in the same folder as the .pkg when the installation process is happening.

How can I adjust the script or the policy so that this folder is also copied out of the dmg file during installation?

Thanks for your help.

1 ACCEPTED SOLUTION

rael
New Contributor II

I've got it to run with the help of you guys. Special thanks to @mack525 and @jhbush1973 !

I used this script as described on this page installing trendmicro...

#!/bin/bash

#Switch to the /tmp directory
cd /tmp

#Download the Trend installer
curl -O -k https://yourserver.com:4343/officescan/console/html/TMSM_HTML/ActiveUpdate/ClientInstall/tmsminstall.zip

#Unzip the installer
unzip tmsminstall.zip

#Install the Trend Software
installer -pkg /tmp/tmsminstall/tmsminstall.pkg -target /

#Clean up the folder
rm tmsminstall.zip
rm -rf /tmp/tmsminstall

exit 0

Thank you all for your help and your time!

View solution in original post

7 REPLIES 7

allanp81
Valued Contributor

One way you can do is to create a pkg with a post install script that delivers the pkg file and corresponding folders with it.

My method just uses a script that gets the dmg from a path and then installs it using the installer command, seems to have worked fine for years.

simon_brooke
New Contributor III

Hi,

I have also been struggling with this one.

I have just been pulling the pkg from the zip file and installing it.

Where on the mac does the conf file and the plist file need to go to.

allanp81
Valued Contributor

@simon.brooke For us it seems to be like this:

/tmsminstall.pkg
/Resources/package_ver.plist
/Resources/conf/broker.pem
/Resources/conf/ServerInfo.plist

mack525
Contributor II

Is this related to the Worry Free editions? I wrote some walkthroughs here Could maybe point you in the right direction..

rael
New Contributor II

I've got it to run with the help of you guys. Special thanks to @mack525 and @jhbush1973 !

I used this script as described on this page installing trendmicro...

#!/bin/bash

#Switch to the /tmp directory
cd /tmp

#Download the Trend installer
curl -O -k https://yourserver.com:4343/officescan/console/html/TMSM_HTML/ActiveUpdate/ClientInstall/tmsminstall.zip

#Unzip the installer
unzip tmsminstall.zip

#Install the Trend Software
installer -pkg /tmp/tmsminstall/tmsminstall.pkg -target /

#Clean up the folder
rm tmsminstall.zip
rm -rf /tmp/tmsminstall

exit 0

Thank you all for your help and your time!

mack525
Contributor II

@rael Glad you got it working

sardesm
New Contributor III

What would the path be if its cloud hosted?