I tried to write installer with packagemaker which runs a shell script during installation. I want to pass some arguments to the shell script during silent mode installation. Something similar to
$installer -pkg MyInstaller.pkg -my_argument1 -my_argument2
The two options I can think of are,
- Set the environment variables and read those from script. But this does not seem to work.
- Write this data to some file and read from it during installation. But it's very ugly way to do this and it is not convenient for my installer's user.
Is there a better way to do it with command line arguments or environments?