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!