How to pass variable to preflight/Volumecheck using installer command to do installation?
How to pass variable to preflight/Volumecheck using installer command to do installation?
- Subject: How to pass variable to preflight/Volumecheck using installer command to do installation?
- From: Shaguo <email@hidden>
- Date: Tue, 26 Oct 2010 17:51:44 +0800
Hi all,
Is there any way to pass a variable to the preflight script using installer command to install a pkg?
# sudo installer -pkg xxx.pkg -target /
I want to pass a variable to the Volumecheck/preflight scripts. Usually, the export command can set variable to its children processes. But it does not work for the installer. For example,
#export xx=s; (sudo installer -pkg xxx.pkg -target / )
preflight can not get the variable xx.
I wonder how to pass a variable to the preflight scripts during installation.
Thanks in advance
--
Thanks & Best Regards!
Email:email@hiddenYahoo:email@hidden
Blog:
http://rashaguo.appspot.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