Re: Get Value From User?
Re: Get Value From User?
- Subject: Re: Get Value From User?
- From: Erik Benoist <email@hidden>
- Date: Mon, 20 Apr 2009 12:10:12 -0400
Paul-
I recently completed a project that did exactly what you're asking. I
wrote a Installer Plugin that compiled the input from the user (we
were asking many questions) and outputted a bash script that set each
of the variables that we were using in the pre/postflight scripts. The
preflight script simply called the generated script that lived in /tmp
and all the variables were ready to be used.
I would definitely recommend going with the Installer Plugin as the UI
experience is much more seamless.
-Erik
On Apr 20, 2009, at 11:28 AM, Paul Cook wrote:
Thanks, for both the custom plugin suggestion and the AppleScript
suggestion.
In terms of the AppleScript route, how does the answer get passed to
a script? (If for example, I want to use the answer in a PostFlight
Script?) I suppose one could have AppleScript write it in a file
somewhere and then you could read it from your script. But is there
an easier way?
I was able to find some information about custom Installer plugins at:
http://developer.apple.com/samplecode/InstallerPluginSample/listing1.html
I haven't looked at the sample code yet, so I don't know if the same
question applies to the custom installer plugin approach or not. But
unless it is real close to what I want, I may go the AppleScript
route.
Best Wishes,
Paul
On Apr 17, 2009, at 11:41 PM, Paul Cook wrote:
Is there anyway from any kind of any Installer script (preflight,
postflight, etc.) to ask the user for a value and to get that value
from within a script? (Bash, Perl, AppleScript, etc.)
In this case, we'd like to ask the user for a name of something.
And then use that name within a script.
My fear based on the answer to the recent progress question is that
the answer is probably No. But this is just different enough that I
thought it might be worth hoping otherwise.
Thanks for any help,
Paul
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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