• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
installer ChoicesXML choiceIsSelected -1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: installer ChoicesXML choiceIsSelected -1
      • From: Greg Neagle <email@hidden>
  • Prev by Date: Installing package choice in a custom location
  • Next by Date: validating a pkg's signature before installation?
  • Previous by thread: Re: Installing package choice in a custom location
  • Next by thread: Re: installer ChoicesXML choiceIsSelected -1
  • Index(es):
    • Date
    • Thread