Hello,
I am creating an AppleScript where it is easy to install Java with one-click for the clients. When the AppleScript is executed it will check for Java and if not found download and install it automatically. It is fine until the downloading part. The below can be done in Terminal console manually to run silently,
sudo -S installer -verbose -pkg your_installer_file.pkg -target /
What I want is to do this in AppleScript automatically. What is the code line to achieve what is done in Terminal console?