EEC can be installed and operated as a Windows service in the 64-bit version.
Requirements
- .Net in Version 4.x (at least 4.5.2) must be installed on the host computer. The installed version can be displayed, for example, in the Registry Editor, key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full.
Installation
Installation of Job Server
Follow the description in the Section Job Server installation to install the Job Server.
Installation of the Visual C++ Redistributable
Visual C++ Redistributable 2010, 2012 and 2015 have to be installed on the host computer in the 64-bit version. The installation files are contained in the directory <EEC installation folder>\install\other.
EPLAN License Manager
The current version of the EPLAN License Manager has to be installed in the 64-bit version.
Log on as service
The user with whom the Windows service is to be carried out later requires the authorization: Log on as service. The authorization can be configured with Administrator rights by using the Editor for local group policies.
- Open the editor for local group policies (for example either via the Microsoft Management Console or by running gpedit.msc).
- In the console tree navigate to Local Computer Policies > Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment.
- Select the Log on as Service entry in the Policy list.
- Open the properties of the policy.
- Open the Local Security Setting tab.
- Use [Add User or Group...] to add the user.
- Confirm the settings with [OK].
COM safety configuration of the EClientService
The user with whom the Windows service is to be carried out later requires start and activation authorization for EClientService. The authorization can be configured with Administrator rights by using the Component service management.
- Open the editor for component service (for example either via the Microsoft Management Console or by running comexp.msc).
- In the console tree navigate to Console Root > Component Services > Computers > My Computer > DCOM Config.
- Select EClientService from the list.
- Open the properties of the component service.
- Open the Security tab.
- Mark the option Customize in the Launch and Activation Permission section.
- Open the Launch and Activation Permission via [Edit...].
- Use [Add User or Group...] to add the user.
- Select the Allow check box under Local Launch and Local Activation.
- Confirm the settings with [OK].
Creating and configuring the license default setting file
In order to start the EEC as a service you require a default setting file for the license selection. This can be created with the familiar license selection dialog.
- Start the ec.exe file so that the license selection dialog is opened. By default the [Shift] key is kept pressed at the same time.
- Select Network license > Create default setting file....
- Enter a name for the default setting file.
- Select a valid license.
- Confirm with [Save].
- Abort the launching process.
- The path to this default setting file is entered in the ec.ini file (see de.eplan.eec.licenseFile): -Dde.eplan.eec.licenseFile=<EEC installation folder>/license.lis
Configuring EEC headless
The following configuration setting is only for the operation of the job server without interface (see de.eplan.eec.headless).
- Open the initialization file (for example ec.ini) with a suitable editor.
- Insert the following line below the entry -vmargs:
-Dde.eplan.eec.headless=true
- Save the initialization file.
Installation and start of the Windows service
A PowerShell script _installService.ps1 is available in the directory <EEC installation folder>\install\service for the installation of the Windows service.
- Run the script for example by using the following command line call with Administrator rights:
powershell -ExecutionPolicy ByPass .\_installService.ps1
In the process the script creates the required EventLog source EEC, installs the service and starts it. A dialog for querying the user is opened.
- Enter the user with which the service is to be executed.
The PowerShell script _uninstallService.ps1 that is executed analog is used to remove the service. The EventLog source is not removed in the process.
Note:
A further log file is available for the analysis of problems during the service start. The storage location can be specified in the configuration file ec.exe.config.
In addition, error messages are also logged in the event log of the host computer.