Unix command(s) to run a .app installer, not .pkg

I asked this over in ARD, but there does not seem to be a "Terminal" forum to ask:

UNIX Command to install app


I have an Installation .app, not a .pkg that i need to get installed on all of my user's machines.. The company that created it does not offer .pkg installers. and No, they will not make one.

I put the application/installer on the local admin desktop.


I can SSH onto the machine and run the application./installer fine.


But i can't get the UNIX to work over ARD.


Can anyone assist? I think i'm close,

Thanks.

iMac, OS X Yosemite (10.10.1), IT Manager for an Ad Agency

Posted on Dec 11, 2014 12:38 PM

Reply
7 replies
Sort By: 

Dec 11, 2014 3:04 PM in response to Kurt Lang

yeah, this .app is actually an installer. i know, not normal. but that's what it is, you launch the app, and it runs an installer... If i go though the contents of the app, it's just and exec file in there, Normally, i would just pull out the .pkg and push that over ARD, but this is a Unix Executable. so it won't work..


I can launch it just fine and run it just fine. the problem is that i don't want to go to 90 machines and switch over to the Admin side and run the app rom there, and enter my local admin creed 90 times...


I suppose in writing this that i "could" run it form the logged-in user desktop, but then again, since users are not local admins, i would have to intervene and enter the local admin reds to get it to run.

Reply

Dec 12, 2014 9:36 AM in response to Robman

I got it...

I was making to too complicated trying to "open" or "--install"

All i needed to send over ARD was: ./path/to/the/exec/inthe/app

as root, and it ran and installed...



Jeez, took me forever to get that one.

Thanks for letting me bounce the questions off you....

Reply

Dec 11, 2014 4:31 PM in response to Robman

I don't know if this will work or not, but you can try.


Download the old PackageMaker tool from the Apple developer site. I think you can download it with a free Developer account. It is in the Auxiliary Tools package.


If you run PackageMaker in command-line mode, there is a "--watch" parameter that will, in theory, monitor your file system while you run a 3rd party installer, and create a pkg installer from the changes.

Reply

Dec 11, 2014 5:04 PM in response to Robman

In the Terminal, you have to manually run the executable in PackageMaker.app/Contents/MacOS/packagemaker, or something like that. There might also be a man page, but ignore it because it is wrong. There is a "--help" parameter that is correct. Hopefully.

Reply

Dec 12, 2014 9:25 AM in response to etresoft

Yeah, this is where i'm weak... I've been doing Mac's for 20 years, but always hated the command-line, that's why i've always used Macs.. I can do some stuff, but very little in Terminal.


So, i know how to cd and ls and rm stuff, and if i drop the PackageMaker exec in Terminal it just launches the app..


So, how do i launch the exec in the PackageMaker app?

Because.....


It looks a lot like the exec in the app i am trying to get installed.

If i can learn how to actually run that exec in PackageMaker, i might be able to use the same to run the exec in the app i am trying to get installed.....

Reply

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.

Unix command(s) to run a .app installer, not .pkg

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