AnyConnect VPN install with Choice XML

cars1jamf
New Contributor

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!

6 REPLIES 6

merps
Contributor III

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>

cars1jamf
New Contributor

Thank you @merps your choice XML file worked!

MP
New Contributor

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. 

 

gregsheppard
New Contributor II

@MP , can you post the choices xml you've tried?

sunils
New Contributor

how to fetch xml from DMG file

 

EdLuo
Contributor II

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