Installing DeviceLock : Deploying DeviceLock Service for Mac : Command Line Utility
  
Command Line Utility
Installation is also possible by using a command-line utility. This utility can install DeviceLock Service for Mac in interactive or unattended mode. Do note, however, that you will need to have administrative access to the computer you will be installing DeviceLock Service for Mac on.
The command line utility is located at /Library/DeviceLockAgent/Utilities/install. The utility can be placed (copied) to any other location. A single .pkg file should be placed along with this utility in the same location. It is essential to only place a single .pkg file; otherwise, if running the installation tool without parameters, a random package may be installed.
The command line tool can work in either interactive or unattended (silent) mode. Use the command line utility to install DeviceLock Service for Mac as follows.
While there are several ways to install DeviceLock Service for Mac, making use of the following command is recommended:
sudo install --delayed --package <path_to_package> --settings <path_to_ini_file>
The --settings parameter is optional.
For example:
sudo /Volumes/DeviceLock/Utilities/install --delayed --package /Volumes/DeviceLock/DeviceLockAgent.pkg --settings /Users/admin/devicelock.ini
 
Note: If the computer on which you are installing DeviceLock Service for Mac runs Python 3 or older, use the following command:
sudo python2.7 install --delayed --package <path_to_package> --settings <path_to_ini_file>
- OR -
sudo python2.6 install --delayed --package <path_to_package> --settings <path_to_ini_file>
By default, Apple distributes its systems with Python 2.6 or 2.7.
If DeviceLock Service for Mac is being installed for the first time, the above command will launch silent (unattended) installation. Otherwise, the system will update or reinstall DeviceLock Service for Mac upon computer reboot.
When reinstalling or upgrading DeviceLock Service for Mac, interactive installation is not recommended as the updated service will start working only after reboot.