installer ChoicesXML choiceIsSelected -1
installer ChoicesXML choiceIsSelected -1
- Subject: installer ChoicesXML choiceIsSelected -1
- From: Jeff Johnson <email@hidden>
- Date: Wed, 16 Mar 2011 18:53:03 -0500
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden