• 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: Access to /usr/local from installer plug-in
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access to /usr/local from installer plug-in


  • Subject: Re: Access to /usr/local from installer plug-in
  • From: Iceberg-Dev <email@hidden>
  • Date: Wed, 9 Dec 2009 21:50:56 +0100


On Dec 9, 2009, at 8:38 PM, Stanislav Kolar wrote:

Hello,



I have to write an installer plug-in that asks for some initial information during the installation process and saves them as a xml file into /usr/local/my_dir directory.

The problem is that in the method "shouldExitPane" I don't have an appropriate rights to modify anything in the directory /usr/local...

Is there a solution of my problem ?


A solution is to save the file in a location where you can write (such as /tmp or /Users/Shared) and then move the files to the final destination through a postflight (or postinstall) script depending on the package format you're using) because the script will probably be run as root in your situation (if you're requiring admin authorization it will (in Leopard and Snow Leopard)).


The pitfall here is that an installer plugin may not be run if the package, metapackage or distribution is installed through installer or ARD. So you need to take this into account too.

My $0.02

_______________________________________________
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: 
 >Access to /usr/local from installer plug-in (From: "Stanislav Kolar" <email@hidden>)

  • Prev by Date: Re: Access to /usr/local from installer plug-in
  • Next by Date: Re: Access to /usr/local from installer plug-in
  • Previous by thread: Re: Access to /usr/local from installer plug-in
  • Next by thread: RE: Access to /usr/local from installer plug-in
  • Index(es):
    • Date
    • Thread