• 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: "Glover,David" <email@hidden>
  • Date: Thu, 10 Sep 2009 15:39:51 +0100
  • Thread-topic: How to localize distribution package's requirements message

You might find it easier to create the .mpkg once, and then just update
and amend your .dist script manually after that.  You can create the
.pkg(s) individually using Iceberg/PackageMaker, and then copy them into
the Packages folder in your .mpkg.

-----Original Message-----
From:
installer-dev-bounces+david.glover=email@hidden
[mailto:installer-dev-bounces+david.glover=email@hidden
le.com] On Behalf Of Ben Staveley-Taylor
Sent: 10 September 2009 09:44
To: Iceberg-Dev
Cc: email@hidden
Subject: Re: How to localize distribution package's requirements message

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:
etheanworld.com

This email sent to email@hidden

Promethean Limited is a company registered in England and Wales with company number 1308938 and VAT number GB 572 2599 18
______________________________________________

Promethean Ltd and or associated and or subsidiary companies :

The views expressed in this communication may not necessarily be
the views held by Promethean Ltd and or associated and or subsidiary companies.

This e-mail is for the exclusive use of the addressee(s). Unauthorised
disclosure, copying or distribution is prohibited.

This e-mail message has been swept for the presence of computer viruses.

Promethean Ltd and or associated and or subsidiary companies accepts no liability for any loss resulting from this email transmission.

Promethean, Promethean House, Lower Philips Road, Blackburn, Lancashire, BB1 5TH, UK. Please update your records accordingly. Thank you!

 _______________________________________________
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

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>)
 >Re: How to localize distribution package's requirements message (From: Ben Staveley-Taylor <email@hidden>)

  • Prev by Date: Re: How to localize distribution package's requirements message
  • Next by Date: Installer fails under 10.6
  • 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