It really depends how the software is delivered. If it's delivered as a standard ".pkg" then you can use the "installer" command to install it. Generally, this is the REMEXECXX command to use:
installer -pkg /Library/Application\ Support/LANDesk/sdcache/somepackage.pkg -target /
Because the agent runs as root, you don't need to use sudo. Also, that's the usual target for a system where apps are installed on the boot volume (usually /Applications). See man installer for specifics.
Now, if your software is delivered as a .dmg, see if you can simply copy the actual installer .pkg on that .dmg. Sometimes, however, software is delivered as a "wrapper app" that does things like ask for serial #s, registration info, etc. In which case, it's up to the publisher to provide information as to how to script this via command line. But if you want to poke around, there's usually a "binary" somewhere in the SpecialInstallerApp.app/Resources/MacOS folder that is often the actual thing that does all the work.
Thank you s much for your response it looks like when we deploy the Maple18.zip file it copies the maple18macinstaller.app to the applications folder. So I am assuming that is the wrapper app.. I guess I will call the manufacturer for support.
So if I want to run Maple18MacInstaller --optionfile installer.properties its in the /applications folder off the root.
How woudl that look like as a script? I would be so thankful as my Macintosh skills are o so horrid.
So, here's a Custom Script I wrote that installs the Oracle VirtualBox Extensions:
REMEXEC1=/usr/bin/VBoxManage extpack install /Library/Application\ Support/LANDesk/sdcache/Oracle_VM_VirtualBox_Extension_Pack-4.3.4-91027.vbox-extpack
First, "ldkahuna" grabs the .vbox-extpack file from the core server (or wherever your packages are hosted - it can be any HTTP server). These are by default placed in /Library/Application\ Support/LANDesk/sdcache.
The next line tells the VBoxManage binary to install this package from the path given. It runs this as root.
So, in your case, use the first line to grab the installer file. If it's a .app bundle, then you should zip it up first. I believe ldkahuna automatically unzips the file, but I forget. If not, you can script that in a line immediately afterwards. Your final line should be the command they gave you to type in Terminal.
Let me know if that helps.