• 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: Mike Fischer <email@hidden>
  • Date: Thu, 10 Jul 2008 22:59:15 +0200

Am 10.07.2008 um 21:04 schrieb Paul Miller <email@hidden>:

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?

Bin there, done that (no t-shirt though).

The only way to do this (that I could figure out) was to write my data to a temporary file with a known name and path and read that file in the script.

I chose to use a file named with a UUID (that I genererated once using uuidgen(1) and hard-coded into the plugin and the script) in / tmp to avoid naming conflicts. My plugin and script try to make sure the temporary file is deleted after I'm done with it. But if not the OS should handle that case sometime in the future.


HTH Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Note: I read this list in digest mode! Send me a private copy for faster responses.

_______________________________________________
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


  • Prev by Date: Re: sending info to postinstall script from plugin?
  • Next by Date: Re: PackageMaker: Postinstall with Components in XCode 3.0
  • Previous by thread: Re: sending info to postinstall script from plugin?
  • Next by thread: Re: Destination going blank!?!?
  • Index(es):
    • Date
    • Thread