installer ChoicesXML choiceIsSelected -1
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com I have an app that runs "/usr/sbin/installer -package [packagePath] -applyChoiceChangesXML [XMLPath] -target /" with a third-party package. This works fine in most cases. However, I have one user who is reporting install failure with a bizarre problem. If the user runs "/usr/sbin/installer -package [packagePath] -showChoicesXML", it gives the result -1 for choiceIsSelected: <key>choiceIdentifier</key> <string>PKG_REF_0</string> <key>choiceIsEnabled</key> <false/> <key>choiceIsSelected</key> <integer>-1</integer> <key>choiceIsVisible</key> <true/> <key>choiceSizeInKilobytes</key> <integer>0</integer> In normal cases, I see choiceIsSelected 1 rather than -1. According to the installer man page: The choiceAttribute and attributeSetting values are as follows: choiceAttribute attributeSetting Description selected 1 to select the choice, 0 to deselect it Thus, -1 should not even be a possible value. Does anyone know what might cause this strange value? The user's package file checksums are identical to my test package. -Jeff _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jeff Johnson