• 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: sending info to postinstall script from plugin?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sending info to postinstall script from plugin?


  • Subject: Re: sending info to postinstall script from plugin?
  • From: Paul Miller <email@hidden>
  • Date: Thu, 10 Jul 2008 15:43:11 -0500

Bill Coderre wrote:

On Jul 10, 2008, at 10:40 AM, Paul Miller wrote:
I need to pass some information from an installer plugin to a postinstall script. I tried using setenv() in my willExitPane: method, but the variable is empty when read in the postinstall script.

Is there another way to do this?

You must write into a known file name/path that is accessible to the logged in user and maybe root (if your script asks for root auth).


Yes, this is a security problem. Be very careful that you can create the file safely. If not, a malicious hacker can put a symlink to /kernel there and the machine won't reboot.

Or worse.

Thanks, I was beginning to suspect this is what I would have to do. Wondering why setenv() wasn't working - surely Installer.app spawns the postinstall scripts?


BTW - I looked for a specific solution to this for over a hour before asking here. What "official" documentation I could find was tagged as obsolete. I'm sorry if this is a FAQ. Only helpful if I can find the FAQ though. :-)

--
Paul Miller | email@hidden | www.fxtech.com | Got Tivo?

_______________________________________________
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: 
 >sending info to postinstall script from plugin? (From: Paul Miller <email@hidden>)
 >Re: sending info to postinstall script from plugin? (From: Bill Coderre <email@hidden>)

  • Prev by Date: Re: sending info to postinstall script from plugin?
  • Next by Date: Re: sending info to postinstall script from plugin?
  • Previous by thread: Re: sending info to postinstall script from plugin?
  • Next by thread: Re: sending info to postinstall script from plugin?
  • Index(es):
    • Date
    • Thread