MeshCentral
MeshCentral copied to clipboard
Silent install for Mac and Linux binary
Does not appear you can do a silent install when using the Mac or Linux binary
mpkg silent install on mac works but has code signing issues
Is the request for something like a -silent
option on the binary installer so that it does not output anything to stdout, and just returns a status code on failure?
Yes, when installing using the binary, users get a popup window asking to Install or Cancel,
See ss
You should be able to run that binary from the command line like this:
./meshagent -install
It will still output status to stdout, but it doesn't require any user input
On the Mac it shows up user prompts, not tested on linux gui but I know @cfsnate did, he can maybe provide screenshots?
I'll take a look. It could be possible I didn't enable text mode on Mac like I did Linux, because Linux it was added later for headless system.. it should be easy to enable.
Yes, a fully silent installer for macOS would be excellent, cheers!
I have the same issue where I can't silently install the meshagent (on Mac) with the "-install" switch.
I am using the "Linux / BSD / macOS Binary Installer." No matter what I try there is a still a popup and the user needs to click the "Install" button for me.
Attached are some screenshots. I saw the Windows meshagent command line has a "-fullinstall" switch, tried that but it didn't change anything. "-connect" works to connect to the server without any popup... but "-install" does not install, just brings up the GUI popup.
$ sudo ./meshagent -help
You can run the text version from the command line with the following command(s):
./meshagent -connect
./meshagent -install
./meshagent -install --installPath="/alternate/path"
$ sudo ./meshagent -info
Compiled on: 20:06:08, Aug 22 2022
Commit Hash: de512f8ae10a4086f54dc32d827777366836a94f
Commit Date: 2022-Aug-22 19:57:39-0700
Using OpenSSL 1.1.1q 5 Jul 2022
Agent ARCHID: 29
Detected OS: macOS 12.6 - arm64`
I found the issue and fixed it. Silent install was added later, so the platform check for it never included macOS... In order for this to work, you'll either have to put the updated meshinstall-linux.js
file into your agents folder, or wait for Ylian to update the server when he gets back.
This should be fixed in MeshCentral v1.0.86. Can you verify that this works for you?
Sorry, a little premature. The fix should be in v1.0.88.
Confirmed fixed in 1.0.90
Same here, tested the -install
switch with meshagent downloaded from 1.0.90 and it worked properly! Thanks!
@si458 this is fixed