Skip to main content
Question

Best way to create a custom pkg with custom options deselected

  • February 16, 2024
  • 6 replies
  • 47 views

janzaldua
Forum|alt.badge.img+7

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

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

YanW
Forum|alt.badge.img+11
  • Contributor
  • February 16, 2024

mvu
Forum|alt.badge.img+20
  • Jamf Heroes
  • February 16, 2024

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
Forum|alt.badge.img+26
  • Legendary Contributor
  • February 16, 2024

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 @mvu suggest with just installing everything and removing what we did not need.


SMR1
Forum|alt.badge.img+13
  • Valued Contributor
  • February 20, 2024

flyingdutchsys
Forum|alt.badge.img+3
  • New Contributor
  • February 20, 2024

janzaldua
Forum|alt.badge.img+7
  • Author
  • Valued Contributor
  • March 19, 2024

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