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.
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.
@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!
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.
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.
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.
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!
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.
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.