• 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
Using environment variables in pkg install scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using environment variables in pkg install scripts


  • Subject: Using environment variables in pkg install scripts
  • From: soubhagya ranjan nayak <email@hidden>
  • Date: Tue, 11 May 2010 20:26:03 +0530

Hi,

We are trying to develop a feature to enable the user to provide some inputs using the environment variables. 

We are supposed to replace the environment variables with their associated values using the preinstall script at runtime. But installer is passing only a subset of the available environment variables to the preinstall script. 

Is there any way to access all the environment variables available to the user in the preinstall script?

In case of Mac OS X, one can specify the system level environment variables in /etc/profile. Is there any other way to specify the system level environment variables?

Since we are concerned about the system level environment variables only , will it be correct to parse /etc/profile file directly to retrieve the environment variables and their associated values?

Regards,
 Soubhagya

  


 _______________________________________________
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: Environment variable availability within post-install script
  • Next by Date: Re: One way installl dependencies
  • Previous by thread: Re: RECEIPT_PATH in postflight giving incorrect path in 10.6
  • Next by thread: postinstall script
  • Index(es):
    • Date
    • Thread