• 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
Re: How to localize distribution package's requirements message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to localize distribution package's requirements message


  • Subject: Re: How to localize distribution package's requirements message
  • From: Ben Staveley-Taylor <email@hidden>
  • Date: Thu, 10 Sep 2009 09:43:36 +0100

Thanks again for your reply.

I can see how the distribution.dist script should look now (and I've taken a look at the one Apple use in the iWork Trial installer). I'm just puzzled how you are supposed to author it. If I enter system.localizedString('MY_KEY_MESSAGE') in PackageMaker's Requirements Failure Message field, that gets quoted in the script as

    my.result.message = 'system.localizedString(\'MY_KEY_MESSAGE\')';

so again it appears literally in the alert instead of being processed as a script command. I can only surmise that to get this to work you have to manually author your distribution.dist file and then replace (or merge it with) the one that PackageMaker generates.

It's all just too troublesome and error-prone, IMO. Fortunately I am only installing a single package, so I can fall back to the deprecated InstallationCheck script and its InstallationCheck.strings localization file. That seems to do what I need, so I'm happy.

Coupled with other PackageMaker deficiencies -- specifically that it keeps silently re-enabling my "Allow Relocation" component settings and thus building an installer that puts files in the wrong places -- I'm going to use Iceberg as my authoring tool. I've already got a more reliable installer out of Iceberg in a day than I had in a week with PackageMaker. I'd definitely recommend it.

-- Ben.


On 9 Sep 2009, at 21:59, Iceberg-Dev wrote:



I just forgot to mention that you need to call a JavaScript method.

my.result.title = system.localizedString('MY_KEY_TITLE');

my.result.message = system.localizedString('MY_KEY_MESSAGE');


mea culpa


_______________________________________________ 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: How to localize distribution package's requirements message
      • From: "Glover,David" <email@hidden>
References: 
 >How to localize distribution package's requirements message (From: Ben Staveley-Taylor <email@hidden>)
 >Re: How to localize distribution package's requirements message (From: Iceberg-Dev <email@hidden>)
 >Re: How to localize distribution package's requirements message (From: Ben Staveley-Taylor <email@hidden>)
 >Re: How to localize distribution package's requirements message (From: Iceberg-Dev <email@hidden>)

  • Prev by Date: Re: Meta Package in 10.5 to support 10.3 problem
  • Next by Date: RE: How to localize distribution package's requirements message
  • Previous by thread: Re: How to localize distribution package's requirements message
  • Next by thread: RE: How to localize distribution package's requirements message
  • Index(es):
    • Date
    • Thread