Installing DeviceLock : Deploying DeviceLock Service for Windows : Unattended Installation
  
Unattended Installation
DeviceLock also supports unattended (silent) installation. This provides an installation method that can be used from within a batch file. To install DeviceLock Service without user interaction, run the file setup.exe with the /s parameter (e.g. c:\setup.exe /s). The file devicelock.ini allows you to customize the installation parameters. This file must be in the same folder as setup.exe.
You can open and edit devicelock.ini in any text editor (for example, in Notepad). Remove the semicolon (;) before the parameter to assign a new value or leave it to assign the default value.
There are two sections ([Install] and [Misc]) in the file devicelock.ini and each section has its own parameters, as described in the sections that follow.
Section [Install]
To install DeviceLock Service, specify the Service parameter:
Service = 1
You can also install DeviceLock management consoles and the documentation by using the Manager and Documents parameters.
To just upgrade DeviceLock Service without changing the existing settings, use the OnlyUpgradeService parameter:
OnlyUpgradeService = 1
In this case Setup ignores all specified settings and only upgrades DeviceLock Service to the new version.
You can also define the installation folder for DeviceLock:
InstallDir = C:\Program Files\DeviceLock
Setup uses this folder if it can’t find the previous installation of DeviceLock.
If you have purchased licenses for DeviceLock, you can also specify the location of the license files:
RegFileDir = C:\Directory
where C:\Directory is where your license files are located.
You do not need to load the licenses, if you are installing only DeviceLock Service. They are required for DeviceLock management consoles and separately licensed components: ContentLock and NetworkLock.
To instruct DeviceLock Service to use a fixed port, specify the FixedPort parameter:
FixedPort = [port number]
where port number is the TCP port number to be used for communication between DeviceLock Service and management consoles. To use dynamic ports for the RPC communication, specify 0 as a port number. By default, DeviceLock Service uses port 9132.
If the CreateGroups parameter is set to 1, Setup creates the special local user group Allow_Access_To_ for each device type (e.g. Allow_Access_To_Floppy for floppy drives), if these do not exist on the local computer.
To apply settings, permissions, audit, shadowing rules and alerts to DeviceLock Service, specify the path to the previously saved DeviceLock Service settings file in the SettingsFile parameter:
SettingsFile = C:\settings.dls
This settings file can be created using DeviceLock Management Console, DeviceLock Group Policy Manager and/or DeviceLock Service Settings Editor.
Section [Misc]
To run a program after a successful install, set the Run parameter, e.g. Run = C:\mybatchfile.bat
To suppress an automatic restart even if Setup needs it, set DisableRestart = 1