Silent install .app without prompting user for credentials

Hi,


I'm the network admin for a high school, and I need to install an agent on all the staff computers that allows remote access from our ticketing system. Instead of bothering each staff member individually, I would like to silently install the .app through the ARD scanner.


The first issue I ran into is that ARD can only do .pkg installs, so I downloaded packagemaker and essentially built the .app into a .pkg. This worked to simply put the .app into the Applications folder of the test client, but it did not launch the app or peform the actual setup.


I can use a Unix command to launch the .app remotely after the "install" to complete setup, but this then prompts the user to enter his/her credentials. This is going to freak out any staff member who sees it, so I would like to get around that step. The rest of the setup is invisible anyway.


Is there a way (script?) to automatically and silently use my admin credentials to launch the .app setup? Or, is there a way to build a .pkg via packagemaker that does the same setup the .app does (since ARD already does silent .pkg installs)? When I opened the .app package contents, there are some components in there that I feel could be used to do this, but I'm not a developer by any means, so I have no idea how.


Thanks a ton to anyone who has any ideas... I've done a good bit of googling and can't find much (without learning all the ins and outs of building apps/pkgs).


- Matt

OS X Mavericks (10.9.2), Clients are on OS 10.8.5

Posted on May 9, 2014 12:42 PM

Reply
3 replies

May 15, 2014 6:56 AM in response to mittortz

If the application has to run on the system and install components, then I know of no way to silently send your administrator credentials to allow it to authenticate.


What you normally must do in this sort of situation is to actually install the app on your admin system, or otherwise figure out where all the components go, and then use Packagemaker to build a package that will place all the components in their correct locations rather than pushing out an application that when launched installs additional components and then launching that application on the clients. Not all application installers will allow you to extract the components and determine where they need to go, so installing the application on your admin system and then figuring out all the components may be necessary. JAMF's Composer:


http://www.jamfsoftware.com/products/composer/


can make this much easier since it can monitor changes in the file system and create a package source based on those changes.


Regards.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Silent install .app without prompting user for credentials

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.