Silent installation of Mac App Installer package.

I want to install an update of my cocoa application in an unattended manner(silent intallation) where user will not be doing any interaction on the mac installer app.

Through terminal it can be achieved using

sudo installer -package /Users/username/Downloads/MyPackage.pkg -target /Applications/ 

But sudo will require password.

Can it be done through a shell script? without passwords?

Silent installation of Mac App Installer package.
 
 
Q