Posted on 02-24-2015 04:35 AM
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
Solved! Go to Solution.
Posted on 02-27-2015 09:00 AM
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.
Posted on 03-01-2015 06:54 AM
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.
Posted on 02-24-2015 05:16 AM
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?
Posted on 02-24-2015 05:46 AM
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
Posted on 02-24-2015 08:21 AM
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.
Posted on 02-24-2015 09:32 AM
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!
Posted on 02-24-2015 11:41 PM
@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!
Posted on 02-25-2015 05:20 AM
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.
Posted on 02-25-2015 07:33 AM
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!
Posted on 02-25-2015 07:55 AM
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.
Posted on 02-25-2015 08:16 AM
@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.
Posted on 02-25-2015 08:19 AM
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!
Posted on 02-25-2015 08:24 AM
@dpertschi that is exactly what i'm doing...
>> open mcafee dmg
>> dragging the .pkg to casper admin
but still echoer code:1
Posted on 02-27-2015 09:00 AM
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.
Posted on 02-27-2015 09:02 AM
Don't forget to save your script: File > Save
Posted on 02-28-2015 08:25 AM
Thanks, @muribe.... will try it out tomorrow.
Posted on 03-01-2015 06:54 AM
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.