Vishwask Force Mac OS

Posted on  by

EPM- Mac How to enable demo mode for MAC OS agents. This feature is available for Windows, so what is the equivalent for Mac OS agent.

Vishwask Force Mac Os Catalina

Vishwask

One of my previous article talks about fresh or upgrade Installation of McAfee agent on Mac OS. But did you ever tried re-Installing the existing version of McAfee agent? Thus the result would be negative. So this post explains the reason behind it. And to overcome this check & force re-install same version of McAfee agent on Mac OS. Please be aware this document created for clients in ePO environment. For demonstration, I have Mac book running McAfee agent version 5.6.2 and will show you how to force Install same version again.

Why re-installation fails?

  • Newsflash: KeePassX now works under Mac OS X, and it can also manipulate KeePass v2 databases! The thing is, if you go to the regular KeePassX downloads page you’ll end up with an old version of the application for Mac that doesn’t really work with v2 databases. Instead, you have to get the so-called KeePassX 2.0 version which you can only.
  • Wireless with ASUS USB-N10 NANO on OS X 10.6 – 10.12; Ati Radeon Sapphire HD 6670 1GB GDDR5 on OSX 10.9 Mavericks; How to create bootable Mavericks 10.9.1 USB installer using myHack; How to Install Retail Mac Os X 10.8.2 Mountain Lion on Asus P8B75-M LX + update to 10.8.4; Mack vs Hack – Difference between Macintosh and Hackintosh; transformWeb.
  • Mac OS X Stuck During Booting Gray Screen Logo and Spinner; Kill or force quit stuck application or process in Mac OS X; Turn on off volume change button sounds Mac OS X; 4 Open Source SQLite Editor for Mac OS X, Windows and Linux; Location of eclipse.ini file on Mac OS X; Disable Chrome Notification bell from Mac OS X menu bar.

The Installer script’s “preinstall check block” do compares both Installing and existing (Installed) versions. As a result if both versions found to be same, the Installer terminate task with error as shown below.

Actually version check part is still applicable for windows clients too. But there you have “/ForceInstall” switch to overcome it.

What does force Install means here?

Now like windows Installer, lets do apply small modification to Mac OS McAfee agent Install script. As it makes Installer to assume Installing version is higher than existing version of McAfee agent. In other words just masking the version check.

Enable Force Install Action

McAfee Install script for Mac actually written as bash shell script. And it includes Install logic as well as encoded Install binaries at the end. Therefore do not modify anything even white space at encoded bin area. But good thing is not much changes needed. Because just need to add few lines of additional code.

  • Download the Installation files from ePO and extract it. If you are not sure how to do it, please do refer Get McAfee agent package from ePO.
  • Edit the Installer script using your preferred editor. For example notepad++, vim, etc.
  • Look for code block “Cannot have install and upgrade together” and then Insert the code above to it. This should work for McAfee agent versions greater than 5.0.0.0
  • On Mac OS, McAfee verifies currently Installed agent properties from config file “/etc/ma.d/EPOAGENT3000/config.xml“. This file holds the details of version currently running. Therefore at the beginning of the Installation above code will modify the config and set version to 5.0.0.0. When the Installation finishes the version number automatically updated by current Installer. Certainly we are not altering any Important codes nor binaries. Since this method of approach is safe and should not create any harm.
  • After doing modifications that particular section should be similar to below.

Note: Do not modify anything beyond this line. Since its the encoded binary area. Which will be extracted into binary during Installation. Even adding a white space make this Installer script useless.

Now we have enabled force Install option without affecting any other Install options. So lets try out.

force re-install McAfee agent on Mac OS

Vishwask Force Mac Os X

Execute the Installer with additional argument “-f” (force)

Then take a look at the log, instead of error you should see progressive messages like below.

Finally verify agent settings and version.

Vishwask force mac os catalina

In other words we made the Installer script ready with force action enabled. So use without switch “-f” for normal Installation and vice versa.

Vishwask Force Mac Os 11

In conclusion, by doing simple tweak we did force re-install same version of McAfee agent on Mac OS. Hope this does helps you. Most Importantly “thank you” for reading my post. Please post your comments and suggestions.