Skip to main content
Answer

McAfee Anti Virus - Error Code: 1

  • February 24, 2015
  • 15 replies
  • 19 views

Forum|alt.badge.img+5

Hi guys... we are fairly new in Casper Suite. Need help in McAfee Anti Virus installation. I can install the said application manually and everything work fine However... if I package it via COMPOSER using either .pkg / .dmg we're getting this Error Code: 1

Not sure what is the issue here. It is just a stand alone installer from McAfee. Is there any special thing I need to do while packaging it? Please advice.

Many thanks

Best answer by muribe

I'm using the install.sh -i so my script will be a bit different. Since you are using the .pkg installer you may try the following:
1. Start Composer, take snapshot.
2. Drop your installer into a folder that is not ignored by Composer. Maybe create a folder /McAfeeTemp and put the .pkg there.
3. Take final snapshot. It should have your install .pkg listed as the only item. Change permissions accordingly.
4. Expand the package source. Right-click Scripts and add postinstall script.
5. To launch the .pkg your script will need something like this: installer -pkg /McAfeeTemp/McAfee.pkg -target /
5b. And to clean up perhaps:
rm -r /McAfeeTemp
6. Save it all as a pkg - upload to Admin, deploy to a test system.

15 replies

davidacland
Forum|alt.badge.img+18
  • Valued Contributor
  • February 24, 2015

There are a few specific steps with McAfee. Have you tried following the steps in this KB article: https://jamfnation.jamfsoftware.com/article.html?id=182?


dpertschi
Forum|alt.badge.img+19
  • Contributor
  • February 24, 2015

I've found that the desktop McAfee antivirus software .pkg deploys fine as-is. Drop it in Casper Admin and deploy.

If you're using ePO and need to install their shitty agent script, well that's a big pile that needs special attention.

Here's a thread talking about that one and some solutions to deploy.
https://jamfnation.jamfsoftware.com/discussion.html?id=12858


Forum|alt.badge.img+16
  • Valued Contributor
  • February 24, 2015

Yes the EPM/Antivirus installers can be dropped in casper admin as is. The ePO agent I have a package that puts the install.sh on the system invokes it and then cleans up after itself when it's done. The even more crazy thing is that install.sh script mounts a .dmg with a package in it! At least once the agent is on a system you can deploy the updates through ePO.


Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 24, 2015

Thank Y'all for the speedy response. Will try it out tomorrow by just dragging the pkg to Casper Admin. Will keep y'all posted.

Many thanks!


Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 25, 2015

@dpertschi Tried it now but still got the same error code:1
What version you guys tried? I just drag the pgk to Casper Admin and imaged it. Is there any other settings I need to do?
Please advise. Thanks!


Forum|alt.badge.img+16
  • Valued Contributor
  • February 25, 2015

the package installs fine on it's own sans casper? Does the package deploy ok to a system say via casper remote vs. casper imaging? Is this the standalone version or the ePO version? Not sure there's a difference but there's separate downloads in the support site.


Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 25, 2015

Hi @Kaltsas.... the package works fine if installed manually. However, it failed via Casper Admin / Remote. This package is a StandAlone Installer but We've tried with both ePO version and still fail :(
I really don't know what the heck is it. Do you think it's something to do with FTU? Or I'm doing something wrong while packaging it. I'm sure I can't get wrong with the drag and drop to admin coz' that's pretty straight forward.

Any help will be much appreciated. Thanks!


Forum|alt.badge.img+3
  • New Contributor
  • February 25, 2015

If a manual install works fine, I have found the following to reproduce a manual install via Casper:
1. Take a snapshot via Composer
2. Drop your installer into a temp folder (maybe /Temp or whatever)
3. Take anther snapshot
4. Add a postinstall script calling the /Temp/<installer> (and perhaps a line to remove the installer)
5. Save as .pkg and upload to Admin

This has been my method for picky installers and serves me pretty well.


dpertschi
Forum|alt.badge.img+19
  • Contributor
  • February 25, 2015

@mreaso The FUT package option only applies to .dmg files that presumably were created with Composer's snapshot method.

So let's confirm: are you dropping the .dmg or the .pkg file into Casper.
You should be opening the .dmg and dragging the .pkg into Casper.


Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 25, 2015

Thanks @muribe... will try it out tomorrow. Do you have the sample script that I can work on? Also, can I take another snapshot after creating a folder? Because after the 1st snapshot it prompts to create the package already. Thanks again!


Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 25, 2015

@dpertschi that is exactly what i'm doing...
>> open mcafee dmg >> dragging the .pkg to casper admin but still echoer code:1


Forum|alt.badge.img+3
  • New Contributor
  • Answer
  • February 27, 2015

I'm using the install.sh -i so my script will be a bit different. Since you are using the .pkg installer you may try the following:
1. Start Composer, take snapshot.
2. Drop your installer into a folder that is not ignored by Composer. Maybe create a folder /McAfeeTemp and put the .pkg there.
3. Take final snapshot. It should have your install .pkg listed as the only item. Change permissions accordingly.
4. Expand the package source. Right-click Scripts and add postinstall script.
5. To launch the .pkg your script will need something like this: installer -pkg /McAfeeTemp/McAfee.pkg -target /
5b. And to clean up perhaps:
rm -r /McAfeeTemp
6. Save it all as a pkg - upload to Admin, deploy to a test system.


Forum|alt.badge.img+3
  • New Contributor
  • February 27, 2015

Don't forget to save your script: File > Save


Forum|alt.badge.img+5
  • Author
  • Contributor
  • February 28, 2015

Thanks, @muribe.... will try it out tomorrow.


Forum|alt.badge.img+5
  • Author
  • Contributor
  • March 1, 2015

Hi @muribe... tried it earlier but for some reason the script won't start. Not sure why. However, I've made some workaround and it went pretty well. This is my workaround...
1. Created a folder from root /McAfeeTemp
2. Then I've change the permission = 777
3. Open Composer then I drag the said folder.
4. Package it as .pkg
5. I created a script to install and remove the said folder after install
6. Drag it to Admin then include it in the imaging process - Triggered After Reboot

Finally it's working pretty well. Thanks for all your assistance.