How to pass arguments to package installer from mac terminal

Joined
Feb 6, 2015
Messages
1
Reaction score
0
Points
1
I want to do my installation of pkg file as silent install from mac terminal. So i used the below command to do silent install.

sudo installer -store -pkg "/User/MyName/Desktop/helloWorld.pkg" -target /

It perfectly installed my application. But i want to pass arguments from this command line script to package installer that was created in package maker. So that i can able to use this argument value in post/pre installation script inside the package installer.

Is there any possibility to pass my value as argument in the above command?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top