• 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
Fwd: PackageMaker Requirements Checking Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: PackageMaker Requirements Checking Question


  • Subject: Fwd: PackageMaker Requirements Checking Question
  • From: Stéphane Sudre <email@hidden>
  • Date: Sat, 13 Dec 2003 20:45:21 +0100

Oups... It was the xcode mailing list in fact.

Begin forwarded message:

On samedi, dicembre 13, 2003, at 12:44  AM, Aaron London wrote:

Hi,

Anyone done any work with the requirements checking facility in
PackageMaker? There doesn't seem to be a straightforward way to do
negative requirements checking (i.e., if X is present then don't
install) rather than positive requirements checking (i.e., if X is
present then install).

Hum, I thought like you before reading the documentation :

http://developer.apple.com/documentation/DeveloperTools/Conceptual/ SoftwareDistribution/Concepts/sd_spec_install_req.html#//apple_ref/doc/ uid/20001949/TPXREF16

File Requirements

Listing 16-4 shows a requirements definition that specifies a flat file requirement. In this example, the package is not installed if the specified font file is present.

Listing 16-4 A requirements definition for a file

<key>IFRequirementDicts</key>
<array>
    <dict>
        <key>SpecType</key>
        <string>file</string>
        <key>SpecArgument</key>
        <string>/Library/Fonts/Apple Chancery.dfont</string>
        <key>TestOperator</key>
        <string>eq</string>
        <key>TestObject</key>
        <string></string>
        <key>Level</key>
        <string>requires</string>
        <key>LabelKey</key>
        <string>AppleChanceryLabel</string>
        <key>MessageKey</key>
        <string>AppleChanceryMessage</string>
    </dict>
</array>

The requirement effectively states that the specifier must resolve to an empty string. This evaluates to true if the file doesnt exist in the Fonts folder on the installation volume, false if it does exist.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Getting rid of warning in Xcode
  • Next by Date: Makefile
  • Previous by thread: PackageMaker Requirements Checking Question
  • Next by thread: Getting rid of warning in Xcode
  • Index(es):
    • Date
    • Thread