I'm building an installer using pkgbuild and productbuild, and I want part of the process to involve asking the user some simple questions. These questions can be answered by either check boxes (yes/no) or a small one-line text input field.
Once those questions are asked, I want to feed them to a postinstall script.
For more context, my product is a set of command-line tools that will live in /usr/local/X, where X is the name of my product. Then, a simple postinstall script is run to set some things up initially. pkgbuild already takes care of this nicely. What I'd really like is for the postinstall script to be provided the answers to my questions, maybe in an environment variable, so it can set things up accordingly.