• 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: Installer Plugins - how to run as root?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installer Plugins - how to run as root?


  • Subject: Re: Installer Plugins - how to run as root?
  • From: Andy Kim <email@hidden>
  • Date: Sun, 13 May 2007 18:25:44 -0700

One last question (hopefully)...

How do I access INSTALLER_TEMP from an Installer Plugin?  It's not stored as an environment variable, I don't see it a getter for it in any of the Installer*.h files, and none of the standard folder methods return the same value:

$INSTALLER_TEMP (from preflight/postflight)
-> /private/tmp/TestPackage.pkg.5188aQlvKG

env = [[NSProcessInfo processInfo] environment]; 
-> env={ HOME; PATH; SECURITYSESSIONID; SHELL; USER;  "__CF_USER_TEXT_ENCODING";}

tempDirectory = NSTemporaryDirectory(); or FSFindFolder(kOnSystemDisk, kTemporaryFolderType, ...);
-> /private/var/tmp/folders.501/TemporaryItems

Thanks - Andy


On May 11, 2007, at 1:29 PM, Peter Bierman wrote:

You can, however, have your plugins communicate with your install scripts, which do run as root. Have your plugin get the installer's session temp directory, which I think is also passed to the scripts. You can drop a cookie file in there with the data you want to pass from the plugin to your script.


 _______________________________________________
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: 
 >Installer Plugins - how to run as root? (From: Andy Kim <email@hidden>)
 >Re: Installer Plugins - how to run as root? (From: Peter Bierman <email@hidden>)

  • Prev by Date: Re: UI (Installer Plugins) and headless installations
  • Next by Date: Re: UI (Installer Plugins) and headless installations
  • Previous by thread: Re: Installer Plugins - how to run as root?
  • Next by thread: Re: Installer Plugins - how to run as root?
  • Index(es):
    • Date
    • Thread