• 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: Communication between Installer plugin and script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Communication between Installer plugin and script


  • Subject: Re: Communication between Installer plugin and script
  • From: Sanjay Rao <email@hidden>
  • Date: Thu, 03 Mar 2011 09:45:55 -0800

On 03-03-2011 09:38, Sanjay Rao wrote:
I used "AuthorizationExecuteWithPrivileges" to call my script with arguments from my plugin code.
-Sanjay

On 03-03-2011 05:44, Liviu Andron wrote:
Hello,

I have an installer plugin, based on http://developer.apple.com/library/mac/#samplecode/InstallerPluginSample/ . The user must provide some data, afterwards authenticate for root installation. The kit uses a 'postflight' script that can save the user data file to its proper location (since it's running as root).
The problem: how can I transfer a filename from plugin to the script ? Is there a way to find the installer temporary folder in the plugin (there're no common environment variables (Installer vs installd): TMPDIR differs,  INSTALLER_SECURE_TEMP, INSTALLER_TEM only in script) ? 

The problem is old, I discovered that searching the list (google found only one result !!!).

"Communication between Installer Plugin and script: how?", 15 May 2006 
http://lists.apple.com/archives/installer-dev/2006/May/msg00042.html

"sending info to postinstall script from plugin?", 10 Jul 2008
http://lists.apple.com/archives/installer-dev/2008/Jul/msg00051.html

"Installer Plugin to Postflight communication", 7 Feb 2008
http://lists.apple.com/archives/installer-dev/2008/Feb/msg00029.html

Another (safe) idea ?
Please not something similar to "I solved it by having the plugin write a file with a known and (hopefully) unique name (containing a UUID) to /tmp".

Liviu Andron

_______________________________________________ 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


--
Sanjay Rao
Digital Media Group, Interra Systems
email@hidden
Phone: +1-408-873-1212(2004)
http://www.interrasystems.com


--
Sanjay Rao
Digital Media Group, Interra Systems
email@hidden
Phone: +1-408-873-1212
http://www.interrasystems.com
 _______________________________________________
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: 
 >Communication between Installer plugin and script (From: Liviu Andron <email@hidden>)

  • Prev by Date: Communication between Installer plugin and script
  • Next by Date: Installing package choice in a custom location
  • Previous by thread: Communication between Installer plugin and script
  • Next by thread: Installing package choice in a custom location
  • Index(es):
    • Date
    • Thread