Posted on 01-22-2020 01:37 PM
Hello,
I'm trying to install Cisco AnyConnect with only the VPN and Dart portion of the package using ChoiceXML. However, when I extract the ChoiceXML from the Cisco AnyConnect.pkg and modify it so it would only install the components I need, I get an error saying "/path/Anyconnect_Choices.xml either could not be found or is malformed. I verified that I have the right path, which is the tmp folder. I also tried to run it from another location (desktop) and same error so I know it's not a path error. See my script below:
installer -showChoicesAfterApplyingChangesXML /tmp/anyconnect_choices.xml -pkg /tmp/AnyConnect.pkg -target /
Also, below is the modified choice XML file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>childItems</key>
<array>
<dict>
<key>childItems</key>
<array/>
<key>choiceDescription</key>
<string>Installs the module that enables VPN capabilities.</string>
<key>choiceIdentifier</key>
<string>choice_vpn</string>
<key>choiceIsEnabled</key>
<false/>
<key>choiceIsSelected</key>
<integer>1</integer>
<key>choiceIsVisible</key>
<true/>
<key>choiceSizeInKilobytes</key>
<integer>22638</integer>
<key>choiceTitle</key>
<string>VPN</string>
<key>pathsOfActivePackagesInChoice</key>
<array>
<string>file://localhost/Users/fmagracia/./desktop/AnyConnect.pkg#vpn_module.pkg</string>
</array>
</dict>
<dict>
<key>childItems</key>
<array/>
<key>choiceDescription</key>
<string>Installs the WebSecurity module that enables cloud scanning of web content to protect against malware and enforce acceptable use policies via the ScanSafe cloud proxies.</string>
<key>choiceIdentifier</key>
<string>choice_websecurity</string>
<key>choiceIsEnabled</key>
<false/>
<key>choiceIsSelected</key>
<integer>0</integer>
<key>choiceIsVisible</key>
<true/>
<key>choiceSizeInKilobytes</key>
<integer>3064</integer>
<key>choiceTitle</key>
<string>Web Security</string>
<key>pathsOfActivePackagesInChoice</key>
<array>
<string>file://localhost/Users/fmagracia/./desktop/AnyConnect.pkg#websecurity_module.pkg</string>
</array>
</dict>
<dict>
<key>childItems</key>
<array/>
<key>choiceDescription</key>
<string>Installs the AMP Enabler module that downloads and deploys AMP for Endpoints, as configured by the administrator.</string>
<key>choiceIdentifier</key>
<string>choice_fireamp</string>
<key>choiceIsEnabled</key>
<false/>
<key>choiceIsSelected</key>
<integer>0</integer>
<key>choiceIsVisible</key>
<true/>
<key>choiceSizeInKilobytes</key>
<integer>798</integer>
<key>choiceTitle</key>
<string>AMP Enabler</string>
<key>pathsOfActivePackagesInChoice</key>
<array>
<string>file://localhost/Users/fmagracia/./desktop/AnyConnect.pkg#fireamp_module.pkg</string>
</array>
</dict>
<dict>
<key>childItems</key>
<array/>
<key>choiceDescription</key>
<string>Installs the diagnostics module that collects AnyConnect Secure Mobility Client troubleshooting information.</string>
<key>choiceIdentifier</key>
<string>choice_dart</string>
<key>choiceIsEnabled</key>
<false/>
<key>choiceIsSelected</key>
<integer>1</integer>
<key>choiceIsVisible</key>
<true/>
<key>choiceSizeInKilobytes</key>
<integer>4674</integer>
<key>choiceTitle</key>
<string>Diagnostics and Reporting Tool</string>
<key>pathsOfActivePackagesInChoice</key>
<array>
<string>file://localhost/Users/fmagracia/./desktop/AnyConnect.pkg#dart_module.pkg</string>
</array>
</dict>
<dict>
<key>childItems</key>
<array/>
<key>choiceDescription</key>
<string>Installs the module that provides the AnyConnect Secure Mobility Client with the ability to identify the operating system, antivirus, antispyware, and firewall software installed on the host prior to creating a remote access connection to the secure gateway.</string>
<key>choiceIdentifier</key>
<string>choice_posture</string>
<key>choiceIsEnabled</key>
<false/>
<key>choiceIsSelected</key>
<integer>0</integer>
<key>choiceIsVisible</key>
<true/>
<key>choiceSizeInKilobytes</key>
<integer>51698</integer>
<key>choiceTitle</key>
<string>Posture</string>
<key>pathsOfActivePackagesInChoice</key>
<array>
<string>file://localhost/Users/fmagracia/./desktop/AnyConnect.pkg#posture_module.pkg</string>
</array>
</dict>
<dict>
<key>childItems</key>
<array/>
<key>choiceDescription</key>
<string>Installs the module that provides the AnyConnect Secure Mobility Client with the functionality needed to authenticate to wired or wireless networks controlled by the Identity Services Engine, including examination and any needed remediation of the connecting host environment.</string>
<key>choiceIdentifier</key>
<string>choice_iseposture</string>
<key>choiceIsEnabled</key>
<false/>
<key>choiceIsSelected</key>
<integer>0</integer>
<key>choiceIsVisible</key>
<true/>
<key>choiceSizeInKilobytes</key>
<integer>2946</integer>
<key>choiceTitle</key>
<string>ISE Posture</string>
<key>pathsOfActivePackagesInChoice</key>
<array>
<string>file://localhost/Users/fmagracia/./desktop/AnyConnect.pkg#iseposture_module.pkg</string>
</array>
</dict>
<dict>
<key>childItems</key>
<array/>
<key>choiceDescription</key>
<string>Installs the Network Visibility Module which collects application telemetry data.</string>
<key>choiceIdentifier</key>
<string>choice_nvm</string>
<key>choiceIsEnabled</key>
<false/>
<key>choiceIsSelected</key>
<integer>0</integer>
<key>choiceIsVisible</key>
<true/>
<key>choiceSizeInKilobytes</key>
<integer>1508</integer>
<key>choiceTitle</key>
<string>Network Visibility</string>
<key>pathsOfActivePackagesInChoice</key>
<array>
<string>file://localhost/Users/fmagracia/./desktop/AnyConnect.pkg#nvm_module.pkg</string>
</array>
</dict>
<dict>
<key>childItems</key>
<array/>
<key>choiceDescription</key>
<string>Installs the module that enables Umbrella Roaming Security.</string>
<key>choiceIdentifier</key>
<string>choice_umbrella</string>
<key>choiceIsEnabled</key>
<false/>
<key>choiceIsSelected</key>
<integer>0</integer>
<key>choiceIsVisible</key>
<true/>
<key>choiceSizeInKilobytes</key>
<integer>3729</integer>
<key>choiceTitle</key>
<string>Umbrella Roaming Security</string>
<key>pathsOfActivePackagesInChoice</key>
<array>
<string>file://localhost/Users/fmagracia/./desktop/AnyConnect.pkg#umbrella_module.pkg</string>
</array>
</dict>
</array>
<key>choiceIdentifier</key>
<string>__ROOT_CHOICE_IDENT_AnyConnect Secure Mobility Client</string>
<key>choiceIsEnabled</key>
<true/>
<key>choiceIsSelected</key>
<integer>-1</integer>
<key>choiceIsVisible</key>
<true/>
<key>choiceSizeInKilobytes</key>
<integer>0</integer>
<key>choiceTitle</key>
<string>AnyConnect Secure Mobility Client</string>
<key>pathsOfActivePackagesInChoice</key>
<array/>
</dict>
</array>
</plist>
Can you please take look or maybe recommend another option for the install? Thanks!
Posted on 01-23-2020 06:45 AM
Here is the xml we use for VPN and DART:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>attributeSetting</key>
<integer>1</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>choice_vpn</string>
</dict>
<dict>
<key>attributeSetting</key>
<integer>0</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>choice_websecurity</string>
</dict>
<dict>
<key>attributeSetting</key>
<integer>0</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>choice_fireamp</string>
</dict>
<dict>
<key>attributeSetting</key>
<integer>1</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>choice_dart</string>
</dict>
<dict>
<key>attributeSetting</key>
<integer>0</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>choice_posture</string>
</dict>
<dict>
<key>attributeSetting</key>
<integer>0</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>choice_iseposture</string>
</dict>
<dict>
<key>attributeSetting</key>
<integer>0</integer>
<key>choiceAttribute</key>
<string>selected</string>
<key>choiceIdentifier</key>
<string>choice_umbrella</string>
</dict>
</array>
</plist>
Posted on 01-24-2020 12:13 PM
Thank you @merps your choice XML file worked!
Posted on 07-16-2021 06:22 AM
Hello,
Has anyone been able to install the Posture Modules only without the VPN Module? Cant seem to do this manually, using the xml or with pkgutil.
Posted on 09-09-2021 11:07 AM
@MP , can you post the choices xml you've tried?
Posted on 12-27-2023 03:58 AM
how to fetch xml from DMG file
Posted on 01-08-2024 10:59 AM
Try this command to view the choices... You will want to correct the path below to the pkg file.
installer -pkg /Volumes/Cisco\ Secure\ Client\ 5.1.1.42/Cisco\ Secure\ Client.pkg -showChoiceChangesXML