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.
|