Re: Strange behaviour with defaults read in install script
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=Y6lQgAlRPLHiIKtbAOyCeNaqBidusN9g/vJQCeUTIf8=; b=r7ZjqP0q+RDHKtub7QHK4Lx4ae45QE1JD6EUXh1H9Q/0isi6msMLKEl+meYNJ6FZXr x4yY8HDkQMH8OFOY6raiQju1kLi/GLbOY8hgvXCCOG71i+xCPOd7V6M5L3pYJm2ZMhdb iAVmw+zkekKT/LqcIccDm00+azzfFXmgdwKqc= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=FfHIzdKlVpLtXyuSP/5a1nSpCiPfXP9WJ7PFz7b23fynLG/4NlD77cWveEuB61febw bKv0TD16s3lTJr5BiBxRjACjkrtPtdj2SKDNGKCeWjDw7MmTPePxJtcgNERzr6391P+6 Tt4+PK2SUQ1GYk3555rNb8bZw1HQM554BPpK8= On Mar 10, 2009, at 11:27 AM, Glover,David wrote: Hi, thanks for all the useful info. Stupid idea: ------------ The idea behind this is to rely on the *.lproj folder. Of course, this would only work with a manual installation. Other idea: ----------- I've got a distribution package which contains a number of localized packages - I'm trying to find out how I can determine the current language of the machine, and select the corresponding localized package for install by default. I haven't been able to find a decent way of doing this with javascript in my .dist file, so I'm looking into using 'system.defaults....' It would be great if there was an easier way of getting this info! :o) When this kind of question happens on the Cocoa mailing-list, the usual answer is that you should not try to figure out what the current language is but let the OS find it. In your case, you may consider writing a quick Cocoa app that has one *.lproj folder per localization. Use the NSBundle APIs to get the path to your package - [NSBundle pathForResource: ofType:] and then open it with NSWorkspace. If you need a distribution script, as long as you're not using a flat package, you would be able to change the contents of the distribution script without too much effort. Use an Installer plugin to find the info and save it to a file that you can later use to change the choices state. _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev