macospackagemakersilent-installer

How to silently install a pkg file in Mac OS X


I am developing a Mac OS X application(cloud printing application). To run my application i need some support drivers. So i packed those drivers and my application using package maker software. And i created a pkg file.

It working fine as a package installer. But i need to silently install this package by running by scripts / commands in terminal.

PS : Silent install is the method that will install the software with any user intervention(like agree the terms). it will silently install the software using admin privillages by using terminal commands. On windows side it is possible to do this silent install.

Can anyone provide the solution to do this silent install in package installer?


Solution

  • Before moving to other installers, we can silently install the installer package using the below command

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

    Got the reference from this link.