Re: Silent install
Re: Silent install
- Subject: Re: Silent install
- From: John Kirkham <email@hidden>
- Date: Wed, 3 Aug 2005 09:22:52 -0400
Hi Matt,
I use this functionality all the time.
The command-line installer is located at: /usr/sbin/installer
From a command-line (or shell script), you can use it as follows:
/usr/sbin/installer -pkg <path to pkg> -target "<target volume>"
(This can be used for meta-packages too.) There are many options to
this program, including control of the verbosity of output. See the
man-page for more details.
As with any command-line utility, you should be able to easily capture,
pipe, or redirect STDOUT and STDERR.
If you need to authenticate an admin or root install, just precede the
command with "sudo".
The only big restrictions I can think of are as follows:
1) License Agreements are skipped over - the installer always runs
from start to finish without any user interaction.
2) Custom UI built with plug-ins for Installer.app (on MacOS 10.4)
obviously aren't loaded by the command-line installer. Similarly, if
an install script launches an external GUI process it may create
problems -- in this case you'd have to parse up the process tree to see
if the parent process is /usr/sbin/installer or Installer.app.
I hope this helps.
John Kirkham
On 3-Aug-05, at 8:18, Matt Weiss wrote:
Hey All,
I've created an installer package and it seems to work nicely.
Although
I have one obstacle that I can't figure out how to get around. In most
of my user cases, the user would click there way through the install,
but in some cases I need to remotely login via ssh and run the
installer. Thus I would like a way to "silently" execute the package.
Does anyone know if one can silently run a package so that there is no
UI put up on the screen to point-and-click through?
Thanks in advance,
Matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden