silent install .pkg

tranatisoc
New Contributor II

it's the box drive package. the following command used to work:

sudo installer -verboseR -pkg "/Users/username/Downloads/Box.pkg" -target /

now, i'm getting this error:

The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

3 REPLIES 3

mm2270
Legendary Contributor III

Check the install.log in Console to see if it has any details on what it's erroring on.

tranatisoc
New Contributor II

I see this:

PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Box.pkg”." UserInfo={NSFilePath=./preinstall, NSURL=file://localhost/Users/username/Downloads/Box.pkg#BoxDesktopScripts.pkg, PKInstallPackageIdentifier=com.box.desktop.installer.scripts, NSLocalizedDescription=An error occurred while running scripts from the package “Box.pkg”.} { NSFilePath = "./preinstall"; NSLocalizedDescription = "An error occurred while running scripts from the package U201cBox.pkgU201d."; NSURL = "file://localhost/Users/username/Downloads/Box.pkg#BoxDesktopScripts.pkg"; PKInstallPackageIdentifier = "com.box.desktop.installer.scripts"; }

blackholemac
Valued Contributor III

Two things come to mind...the installer cert and date and time on target being off.

If neither are the case, we would have to look at what the perinatal script referenced in your logs is trying to do. If it is failing to run, it might be coming across something on your target system it is not expecting ( potentially permissions or not being able to find a file seeking to find). Another common thing that Ive found is that not all installer packages are designed to be run from marking window. In this case it would work if you were logged in as someone but fail at the login window as part of a push.