Bare with me as I try explain this, brain's a bit frazzled today.
So, we are trying to deploy Sophos... in every release until now we have had no issues and everything has sailed along smoothly thanks to some excellent community guides.
In anticipation for 10.11, Sophos released a new version of their AV for 10.11 and higher (9.4). The catch is that this can not roll out as an update from the Sophos Management Console. A new installer must be packaged and deployed.
No problem right? Wrong.
For the life of me I can not get the installer to run silently via terminal. I have heard back from our support vendor and got this oh so helpful reply...
"El Capitan is still very new but apparently you cannot run silent installs on OS X 10.11 and I haven’t come across a way to circumvent this. Sophos KB article that lists current install options via terminal is https://www.sophos.com/en-us/support/knowledgebase/14179.aspx. "
Is anyone able to shed some light on validity of this statement? I can't believe that Apple would remove the functionality to run silent installations?
You are probably going to have to repackage their installer.app as a .pkg using a snapshot in Composer.
You can absolutely install silently on El Capitan, just maybe not with however they setup their installer.app.
I'd be wary of using Composer snapshots with Sophos installer.
Last one I deployed was 9.2 using @rtrouton method, and I won't be looking at el cap and 9.4 for a few months, but there's also this link from sophos with details to get the Mac in the right group as part of the install
It seems to us that Sophos 9.2.8 works fine with El Cap. This is the current recommended, with 9.4.0 being on the preview release channel. My Mac is on the preview channel, and it updated from 9.2.7 to 9.4.0 automatically from our Sophos server.
We've reached out to Sophos tech support to confirm this article will allow silent installs:
Article ID: 119744
Title: How to create a pre-configured installer containing updating and On-Access scanning options
So it seems like there's lots of mixed responses here. I'll go through and try each one out and see how I get on.
@bentoms I did try using your method first (as we've used it in the past) but I may have done something wrong so I'll try again.
@dan.snelson Thanks for that link. Looks very promising also.
I'll report back ;)
Following Sophos article 119744, copying the entire contents of the .DMG to a temporary directory and then executing the following command in a post-install script seems to be working for us.
/path/to/tmp/folder/SophosMac9.4.0/Sophos Installer.app/Contents/MacOS/tools/InstallationDeployer --install
I banged my head against a wall with Sophos. I finally went the lazy route and setup an HTTP file server on my jds mac to deploy the installer. For some reason, I also get an error the first time I run it, so I run it twice. Sloppy but I just needed a solution. Albeit, I'm not using Enterprise. This is what worked for my for 10.11
A tail from a successful installation:
creating: savosx_he_r/Sophos Installer Components/savi.bundle/Contents/Install/Root/savi/ inflating: savosx_he_r/Sophos Installer Components/savi.bundle/Contents/Install/Root/savi/savi + /usr/bin/logger 'Installing Sophos' + echo 'Installing Sophos' Installing Sophos ++ '/tmp/savosx_he_r/Sophos Anti-Virus Home Edition.app/Contents/MacOS/tools/InstallationDeployer' --install ## Checks exit code: + '[' 139 == 0 ']' ## Not equal to zero so reruns. + '/tmp/savosx_he_r/Sophos Anti-Virus Home Edition.app/Contents/MacOS/tools/InstallationDeployer' --install The installation was successful. + /usr/bin/logger 'Sophos Installation Succesfull'
We're able to do a silent install on El Capitan by copying the .dmg and running the script below
cd /Library/temp/Sophos/Sophos Installer.app/Contents/MacOS/tools/
sudo "./InstallationDeployer" --install