• 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: Environment variables available only from Cocoa apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Environment variables available only from Cocoa apps


  • Subject: Re: Environment variables available only from Cocoa apps
  • From: Iceberg-Dev <email@hidden>
  • Date: Mon, 20 Apr 2009 22:27:00 +0200


On Apr 20, 2009, at 7:28 PM, Wrekso Wibowo wrote:

Hi all,

I have a postinstall executable as part of an installer. The installer can be launched in one of three ways:
- manually (ie. user launching installer by double clicking)
- as part of custom installer built by Assistant-like app
- using Apple Remote Desktop


I'd like to distinguish how it was launched, and behave slightly differently when the Installer is launched manually. As it appears, the postinstall is separate process from the Installer and I haven't found a way to indicate in the postinstall that the Installer is launched manually by user (instead of via ARD).

I'm thinking perhaps there is an environment variable that is available and can be checked only within Cocoa apps under Tiger and up. Does anyone know if such thing exists? Any help is appreciated. I am cross-posting to Cocoa-dev in the hope that somebody may have a solution.

There is one:

COMMAND_LINE_INSTALL

It can also be accessed from JavaScript.


_______________________________________________ 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
  • Follow-Ups:
    • Re: Environment variables available only from Cocoa apps
      • From: Wrekso Wibowo <email@hidden>
References: 
 >Environment variables available only from Cocoa apps (From: Wrekso Wibowo <email@hidden>)

  • Prev by Date: Environment variables available only from Cocoa apps
  • Next by Date: Re: Environment variables available only from Cocoa apps
  • Previous by thread: Environment variables available only from Cocoa apps
  • Next by thread: Re: Environment variables available only from Cocoa apps
  • Index(es):
    • Date
    • Thread