• 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: postinstall scripts not executing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: postinstall scripts not executing


  • Subject: Re: postinstall scripts not executing
  • From: "Gignac, Jason (HAS-SAT)" <email@hidden>
  • Date: Thu, 14 Aug 2008 14:11:33 -0500
  • Thread-topic: postinstall scripts not executing

Although, it doesn't, again, help if you have a third party app. If it's of
any use, we've set prefs, traditionally, with an Apple script application in
the /Users/Shared folder, that the user can decide to run if she wants to
configure an application with the defaults. We are making one now, for
instance, that will auto-configure iChat to hook to our Jabber server. But
of course, this isn't the ideal solution, it's just been one that works for
us.


On 8/14/08 Thursday, August 14, 2008 -1:58 PM, "Steve Stockman"
<email@hidden> wrote:

> I don't know about documentation, but a big argument against an installer
> writing prefs is that you can't know whether there is any connection between
> the user installing the app and the user(s) actually running it; they often
> are not the same.  (Well, if it is an in-house application, then MAYBE you
> can know...)
>
> You can iterate the "/Users" folder and stash initial prefs into each
> "Library/Preferences" subdirectory (and maybe
> "/var/root/Library/Preferences" if you have some wild idea that someone may
> need the app while logged in as root), but that does nothing for networked
> users, and finding all networked user home directories can be a pain (such
> pain being magnified by the possibility of offline servers).
>
> A much better idea is for the application, at launch, check for the
> existence of preferences for the current user only, and set up some default
> values if none yet exist.  NSUserDefaultsController makes this quite easy,
> but even if you don't use Cocoa preferences it's still a fairly simple
> matter to copy default preference values out of some file buried in the
> application bundle.
> ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
> Steve Stockman
> Software Architect
> Consumer Products - Macintosh
> Symantec Corporation
> www.symantec.com
> ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
>
>
>
>> From: "Gignac, Jason (HAS-SAT)" <email@hidden>
>> Date: Thu, 14 Aug 2008 12:51:42 -0500
>> To: Luke Bellandi <email@hidden>, Jeremy Matthews
>> <email@hidden>
>> Cc: "email@hidden" <email@hidden>
>> Subject: Re: postinstall scripts not executing
>>
>> Is there any particular documentation on the why-and-wherefores of the
>> discouragement against pref-writing?
>

 _______________________________________________
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: 
 >Re: postinstall scripts not executing (From: Steve Stockman <email@hidden>)

  • Prev by Date: Office Update 12.1.2
  • Next by Date: Re: postinstall scripts not executing
  • Previous by thread: Re: postinstall scripts not executing
  • Next by thread: Re: postinstall scripts not executing
  • Index(es):
    • Date
    • Thread