Best way to create a custom pkg with custom options deselected

janzaldua
Contributor

Hi. What is the preferred/best way to create a custom PKG from the developer's PKG? An example is Cisco AnyConnect.

image003.jpg

If I run the installer for Cisco AnyConnect manually, I get the options to deselect certain things, such as Web Security or ISE Posture. If I were to deselect these options, how could I make sure those options get deselected for everyone else when deploying via Jamf? (since it will install without a GUI) Would this be done via Automator?

Thanks!

6 REPLIES 6

obi-k
Valued Contributor III

There are other options, but you could use this:

1. Push the Cisco Secure Client Package

2. Add a post-install script (below) to run after

 

#!/bin/bash

/opt/cisco/secureclient/bin/amp_uninstall.sh
/opt/cisco/secureclient/bin/dart_uninstall.sh
/opt/cisco/secureclient/bin/iseposture_uninstall.sh
/opt/cisco/secureclient/NVM/bin/nvm_uninstall.sh
/opt/cisco/secureclient/bin/umbrella_uninstall.sh


exit 0

AJPinto
Honored Contributor III

We stopped using AnyConnect a few years ago. However, unless something has changed, AnyConnect uses something called a custom.xml to customize the options that are installed when you deploy the client. This process is a complete and total mess, and we wound up doing what @obi-k suggest with just installing everything and removing what we did not need.

FlyingDutchman
New Contributor

janzaldua
Contributor

Thanks everyone for the suggestions. Haven't gotten around to trying this yet!