I am trying to create my first script to install a pre-defined package (always in the same location on every machine).
When I run the command via Terminal, it does prompt for the root/admin password, which I type in and the installation works perfectly. When I send the command via Kaseya, it states that the script was successful, but I do not see the application installed (I've check after a reboot as well).
So, my question boils down to: how do I send across a typed root/admin password?
Here is the script that I current have.
executeShellCommand("cd /Users/servicemax/Downloads/", "Execute as System", "Max OS X", "Halt on Fail")
executeShellCommand("sudo installer -pkg 'Sophos Anti-Virus Home Edition.pkg' -target /", "Execute as System", "Max OS X", "Halt on Fail")
I would greatly appreciate feedback! :)