> For the complete documentation index, see [llms.txt](https://docs.editran.onesait.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.editran.onesait.com/documentacion-editran/open-v5.2.1-en/windows/instalacion.md).

# Installation

## Introduction

This document provides the installation manual for the Editran System in environments **Microsoft Windows**.

Editran is a communications platform, developed by Indra, over data networks and the Internet that enables direct communication between computer applications residing on different machines and operating systems of different companies, organizations, and public or private entities.

This document describes the processes that must be carried out to install and configure the Editran System. It also includes the processes required to upgrade an installation to its next official version.

The manual is aimed at system administrators and it is assumed that the reader has the technical knowledge necessary to carry out the tasks described in it.

### Definitions

* **Presentation:** Set of parameters that in EDITRAN define each type of transmission.
* **EDITRAN/GC:** EDITRAN module for RSA key exchange.

## Prerequisites

### Hardware Requirements

The hardware characteristics of the equipment will depend on the level of workload expected in each deployment of the product. An indicative configuration is provided by installation type.

#### Processor

Given the diversity of different architectures existing for these operating systems, you should consult the equipment manufacturer to choose the one that best suits your needs. In general, product performance improves with:

* Higher processor speed.
* Greater number of cores/threads.

#### HDD Space

The required disk space depends largely on the maximum size of the transmitted files and how long they are kept on the equipment. Since this is not known in advance, only the following factors are taken into account:

* Space required for Editran software. It depends on the OS, but does not exceed 30 MB.
* Space required for product configuration data. Each defined transmission profile uses about 35 KB. The total number of transmissions to configure will depend both on the number of entities we need to communicate with and on the types of information exchanged. Therefore, for an average installation (250 different profiles), about 10 MB should be counted.
* Space for temporary files created by Editran during transmissions. For each transmission, disk space will be needed for three times the volume of data transferred. The table gives a recommended sizing based on the intended use of the product, based on the maximum number of concurrent transmissions and the volume of exchanged files.

#### HDD Sizing

| Load     | No. of Transmissions | File Size | HDD Space |
| -------- | -------------------- | --------- | --------- |
| Low      | 1 - 25               | 50 MB     | 20 GB     |
| Standard | 25 - 100             | 250 MB    | 140 GB    |
| High     | > 100                | 1 GB      | > 300 GB  |

#### Communications

* Ethernet network card for TCP/IP protocol.

#### Scalability and high availability solutions

At the infrastructure level for installations that have these needs, a virtualization solution is recommended. The implications this would have on the product:

* For this solution to provide scalability capabilities, it would have to be associated with the installation of multiple isolated Editran instances, each one managing its group of transmissions.
* It is necessary to install the Editran/PX component, which is configured to route incoming traffic to the corresponding instance.

![high availability diagram](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-5bd33feb4560260eb74f676cf5342e35b8882e91%2Fdiagrama-virtualizacion.png?alt=media)

### Software Requirements

#### Supported Operating Systems

The Editran software is distributed for 64-bit operating systems and x64-based processors. The supported versions are:

| Operating System    | Notes                                                 |
| ------------------- | ----------------------------------------------------- |
| Windows 10          | Support for Microsoft Windows 10 ends in October 2025 |
| Windows 11          |                                                       |
| Windows Server 2016 |                                                       |
| Windows Server 2019 |                                                       |
| Windows Server 2022 |                                                       |
| Windows Server 2025 | Supported from version 5.2.1.8                        |

> Microsoft will end support for Windows 10 on 14/10/2025 and will stop providing security patches for this operating system version; more information about the end of Microsoft support is available [here](https://www.microsoft.com/es-es/windows/end-of-support?msockid=1ab3235e9b356f2d2cc736f09a1e6e79\&r=1). From that date, if there is an issue with the Editran product, the team will recommend upgrading the Operating System to a more modern version.

#### Additional software

* The package must be installed ***Microsoft Visual C++ 2015-2019 2008 Redistributable (x86)***, which can be incorporated into the Editran installation process.

## Connectivity

EDITRAN is a client/server protocol. To enable remote connections from any other entity, you must have Internet access with a fixed public IP assigned and an inbound and/or outbound open TCP port (by default EDITRAN uses port 7777).

> It is recommended that the equipment where EDITRAN is installed be on the internal network with a private IP and that the Internet connection be made through the EDITRAN/PX module developed as a gateway to add more security to TCP/IP communications on public networks. For more information on this component, consult its User Manual

## Onesait Editran Installation

### Installation

To carry out the installation, follow the steps below.

If you want to perform the version upgrade, go to point [Version Upgrade](#actualización-de-versión) before installing.

Throughout the installation/upgrade process you must be an administrator user and have edit permissions both in the Windows registry and in the task scheduler.

* Run the Editran/Windows installation package. The following screen will be displayed; press the Next button if you want to continue with the Editran installation.

![step 01 - installation](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-840051e74b2ee57b05ce236e2970b096dd8aa3be%2Fimage4.png?alt=media)

* A screen will appear with the folder within which the Editran installation directory will be created, and you may choose any folder or the one proposed by default; once you have decided on the installation directory, press the Next button:

![step 02 - installation](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-72393a6e856417f2990d2fac6681560a6639e60e%2Fimage5.png?alt=media)

* This screen shows the full Editran installation path. The product configuration files and temporary files will be stored in this same location. If you want to configure another path for these files, check "Custom configuration data directory" and select the desired folder. Press the Next button:

![step 03 - installation](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-42365058cdc500951042e58afcac1cfe97297e7d%2Fimage6.png?alt=media)

* The redistributable package must be installed on the computer **Microsoft Visual C++**. If it is not installed, you must check the option offered on the next screen:

![step 04 - installation](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-aa1a8f3f0b8ad2f0ab5cbc5e3574f5abc9ec56c1%2Fimage7.png?alt=media)

> If you want to install later, you must leave the check box unchecked and use the executable located in the subdirectory `Editran\bin\vc160\vcredist_x86.exe`.

> It is recommended to uninstall the redistributables installed in versions prior to Editran 5.2.1.4 (Microsoft Visual C++ 2008 Redistributable).

* On the next screen you are asked to configure the periodicity of the task that checks the integrity of this installation.

![step 06 - installation](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-8a78baec77ef453207a234c643a6c1cb4e478a1b%2Fimage9.png?alt=media)

* The next screen offers installation of the transmission management service. Its installation is only recommended if you have a specific license for this module.

![step 07 - installation](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-d5816bdd966d0fea40d4604e1dd5c15f263eda6b%2Fimage10.png?alt=media)

* This screen shows a summary of the folders where Editran with the TCP/IP protocol will be installed, with the possibility of going back to modify whatever you want.

![step 08 - installation](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-bd3d97dd3e77fa077e907fffabc950bf4ef545e1%2Fimage11.png?alt=media)

Press Next to start the installation process.

* The screen appears showing progress during the installation process

![step 09 - installation](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-75f50d06e61b09fc31904cdb4f9c1514d272cc3a%2Fimage12.png?alt=media)

* If the option to install the redistributable package had been checked **Microsoft Visual C++**, at this point the following screen will be shown and you must press the **Install**:

![redistributables](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-0d8a622342936b2c6c0dc2d46d543f98f32a7173%2Fimage8.png?alt=media)

If your computer already has the package installed, the following screen will appear and you only need to press the **Close** button **Yes** in the pop-up window that will be shown below.

![redistributables](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-5820f4de7d26902f2da02c05defef702f594ec4b%2Fimage41.png?alt=media)\
![redistributables](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-eda18b2c20177b3a421527694d6be960385ae062%2Fimage42.png?alt=media)

* Once all components of the Editran package have been extracted, you are notified that the installation has finished.

![step 10](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-937b873731522f06db2623cf788c8eb55fe5ea09%2Fimage13.png?alt=media)

* If it is necessary to review the installation information, it is recorded in a log file in the %Temp% directory.
* Once the Editran installation is complete, it is possible to consult its version and other relevant information from the Windows Control Panel.

![step 11 - installation](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-230141df8f8bfce32e5f86aa041bfd934b3ef814%2Fimage14.png?alt=media)

* The installation process creates log files that record system activity. These files are cyclic and are sized for 20,000 messages. If the customer needs a larger history, they can resize them by running the command **makelog** as shown in the image. Just keep in mind that this must be done with the Editran service stopped.

![makelog](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-bd2aa92036649a83357cb12f1a0eb214723dc404%2Fimage15.png?alt=media)

From the Editran installation directory, the full version of the product can also be obtained through the command **ediver**:

![ediver](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-53a03ee775db2a89e02fed719e0d72485e81530e%2Fimage16.png?alt=media)

## Security

### Operating system hardening

Hardening is a process through which the technical and organizational measures necessary to reduce the vulnerabilities of a system are implemented. Editran recommends the following:

* Installation of "**Security Compliance Toolkit and Baselines**" and configuration of the policies according to the specifications for the version type provided by Microsoft.
* Use of the **CCN hardening guides on Windows environments** (Series 500).
* Service filtering in the **Windows firewall** .
* Disabling unnecessary services, Windows features, PowerShell, etc.
* It is recommended to have a separate partition for temporary use apart from the system.
* Updates should be configured so that at least the security updates are installed by default.
* It is recommended to test and evaluate the deployment in a VM (pre-production, never production). Tools such as [HardeningKitty](https://github.com/scipag/HardeningKitty) can be used to review part of the hardening.
* It is recommended to create a non-administrator user for managing and running the Editran product. This point is described in more detail in the section [Secure environment execution](https://gitlab.devops.onesait.com/onesait/disruptors/ecosystems-editran/editran-documentation/-/blob/public/open/5.2.1/windows/instalacion/README.md#ejecución-en-entorno-seguro)

### Secure environment execution

Editran is an application that only transfers information; it neither processes nor collects the content of the files it transmits. From this perspective there is no risk of exposing sensitive information. However, it is advisable that resources such as configuration files and logs, created during the application's activity, are not accessible to any user of the equipment. With this objective, recommendations are given for running the product in a secure environment.

The access control proposed for the product installation folder is based on user permissions and is explained in the following steps:

1. Create a new account as a user with the role of Editran administrator. In our case we created a generic one with the product name in the machine domain. If this were not possible in the customer's infrastructure, that role should be assigned to a specific user in the organization.
2. It is recommended that this user have only write permissions on the essential files and folders.
3. Once the Editran product is installed, the permissions of the Editran folder will be modified to restrict access. With the folder selected, choose the option **Properties** and select the tab **Security** in the displayed window. On this tab you can see the current folder permissions, and clicking the Edit button will open a new window similar to the previous one that allows you to add and remove users, as well as configure specific permissions for each user.

> An appropriate configuration would be the one shown in the image: only authorize the Editran administrator user with full control, and optionally the Administrator or Administrators group of the computer.\*

![appropriate user configuration](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-abe79790a69c6daffa45fb67b866bf792b2f0739%2Fimage17.png?alt=media)

4. Editran binaries are installed by default with the "read-only" property; this property must not be modified.\*
5. The product installs two services that are by default configured to log on as Local System. Once the permissions have been changed, it will be necessary to modify in **Properties** so that they start with the account of the user with permissions on the folder.\*

![user services](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-e21c9d33728f16cac0b8dbf757120524179513fc%2Fimage18.png?alt=media)

6. Lastly, it is recommended that the user who starts the Editran service does not have Administrator permissions. Failure to comply with this recommendation may mean a security breach, and it will be the customer's responsibility to control the integrity of the scripts that can be configured in Editran as User Programs.\*

### Installation integrity

After the installation of Editran, the Windows Task Scheduler is configured with the **Editran Integrity Task** whose mission is to ensure that the Editran binaries have not changed since installation and, therefore, that their execution is safe.

![Task Scheduler](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-59aca80f709dd2bd30efd8b5be18e66c7d7b9260%2Fimage19.png?alt=media)

If the verification task detects any inconsistency, an event will be generated that can be consulted in the Windows Event Viewer. In this way, these records can be used and appropriate measures taken if errors are detected.

![Event Viewer](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-17def742abbe26e7d0efa9ce5c66d3d90f158103%2Fimage20.png?alt=media)

### Code signing

All the binary code (executables and DLLs) distributed by the Editran application is delivered signed. The purpose is to allow end users and the operating system to verify that the program code comes from the correct owner and has not been accidentally damaged or maliciously altered.

The Authenticode signature attaches a digital certificate to the delivered code that identifies Editran as the provider. These certificates are issued by certification authorities or CAs. In our case the issuing root entity is also a product entity; this means that in the signature verification the user must include it as a trusted CA because it is not published in the lists provided by Windows.

Ways to verify the signature once the software is installed:

Checking the program signatures from the ***Windows Explorer***. To do this, locate any file in the subfolder *«bin»* of Editran, and right-click it to open the ***Properties***. At the top there is a tab called ***Digital Signatures.*** Click on it to see the included signature:

![Signature Properties](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-21a15d8b8ef53dcef0e9caa87648d0e8c8bca7b1%2Fimage21.png?alt=media)

To see a signature in detail and verify whether it is really valid and has not been spoofed, what we must do is select it and press the "Details" button. This way we can see all the information related to this digital signature and the certificate that identifies the signer.

![Signature Information](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-41c6d4fff3b906087e4bf1597fb99da9432b30d8%2Fimage22.png?alt=media)

Explorer allows manual verification, but there are ***tools*** that would allow the end user to automate a validation mechanism. If the Windows SDK is installed, you can use a tool called SignTool which, from CMD, allows us to check the signature.

![verify editran](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-b51ae229de6f71b2aa0083e033e013d7eeab508f%2Fimage23.png?alt=media)

In our case the verification is performed with the /pa option to indicate that the default Authentication Verification Policy should be used. If not specified, SignTool uses the Windows Driver Verification Policy, and it would fail by requiring the CA to be a recognized issuing entity.

If we do not have the SDK installed and do not want to install it on the computer, there are other free tools available. For example, [DigiCert Certificate Utility](https://www.digicert.com/es/support/tools/certificate-utility-for-windows).

### License

Once properly installed, Editran requires a specific license for each computer in order to function, depending on a Hostid (unique code of each machine where Editran is installed).

To generate that Hostid you can:

1. Open the shortcuts folder in the Programs section of the Windows Start menu and run **License**. The program will display the new Hostid in Notepad. In addition, it will generate a dated file, in the format **hostid\_DD-MM-YY.txt**, in the directory **bin** of the Editran installation.
2. Open the Editran/P menu, open the File tab and click on **Generate HostID**. Accept the question it asks and choose a directory to copy the file **hostid.txt** resulting.
3. If you cannot open the Editran/P menu because you are accessing from a remote computer or a virtual machine, you must go to the **bin** of Editran and run the following command:

> hostid -a > hostid.txt

In any case, the resulting file with the **HostID** must be sent to the email address <editran@minsait.com> so that we can generate the corresponding license.

You must also send the file **licencia.dat** from the previous version of Editran, if you have one.

You will receive an email with 1 attached file that you must download into the directory **bin/SL**. It is the responsibility of the Editran administrator to protect this file so that it cannot be modified, as that would cause the system to stop working.

> *\<ficLicenciaOrigen>*: License file with extended name. It must be renamed as **licencia.dat**

## Editran/GT Installation

To use the Editran/GT service, you must previously have a valid license with the editrangt module.

During the installation of Editran/Windows, the wizard already offers the option to install the Editran/GT service. If it was not selected at that time and you want to install it later, you can do so by following these instructions.

To be able to install it as a service, you must execute the following commands, located in the directory `bin/` of Editran with a Command Prompt (cmd.exe) run as Administrator:

```powershell
EDItranGTServ.exe -install

reg.exe FLAGS HKLM\SOFTWARE\EDITRAN\EditranGT SET DONT\_VIRTUALIZE /reg:32
```

A service called **EDItranGTServ**.

In the User section, you can choose to start it with the Windows local system account (local system) or define a specific user; this last option is useful when special permissions are needed for handling Editran transmission files (network resources with permissions limited to certain users, etc.).

## Editran System

### Startup and shutdown

In Editran Windows environments, the system can be started and stopped in 3 ways:

#### As a Windows Service

In this way, Editran starts as a Windows service, being able to start under the name of a specific user and not having to be logged in.

The service name is: **Editran Base Service**

Editran actually consists of two services:

* **Editran Base Service**
* **Editran License Service**

However, since they are installed with a pre-configured dependency of the Base service on the License service, it is enough to start the Base service to trigger the start of both services.

If you start it this way, you will not be able to use the semaphore or the Editran command; you must use the corresponding options from the Windows Services window (*services.msc*).

In the User section, you can choose to start it with the Windows local system account (Local System) or define a specific user; this last option is useful when special permissions are needed for handling the transmission files (network resources with permissions limited to certain users, etc.).

**Shutdown**

If you want to stop both services, the License service will be stopped first, choosing whether or not to stop the Base service when the required dependency question is asked.

**Installation/Uninstallation**

During product installation, the services will be installed automatically.

To be able to install or uninstall them later:

* Run the corresponding command from the **bin** of Editran, with a *Command Prompt* (cmd.exe) run as Administrator
* **SvcInstall** or **SvcUninstall**, as appropriate

> ***Note**: To delete the service, you will have to close the Windows Services window; otherwise, depending on the Windows version, it will not be removed until you restart the computer.*

If you want Editran to recover from any abnormal service failure, you must configure the Editran service in the Recovery section as follows:

![Editran Service Properties](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-9df12d7f8a1b40a8e34d0230acde3d952c55684b%2Fimage24.png?alt=media)

#### From the semaphore in menus P and G (or the Start and Stop Editran options on the File tab)

In this way, Editran starts the processes necessary for its operation under the name of the user who ran it. Therefore, Editran will use the permissions of that user and, in addition, if the session is closed, Editran will stop.

The semaphore in red means Editran is stopped; if it is green, it is started.

If Editran is started as a Service, the semaphore cannot be used, and the following message will appear:

![Semaphore startup error](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-2b07a6259f02a13790f4f5651ebb079c53f0d229%2Fimage25.png?alt=media)

#### From the Editran command

In this way, Editran starts the processes necessary for its operation from the command.

The syntax of the command is:

![startup command](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-e13c7a0bfdbdd89a64701c274856760194a9b21a%2Fimage26.png?alt=media)

As with the previous option, this startup method cannot be used if the Service is being used.

## Windows Registry configuration settings

In the Editran installation process, a new key is created in the Windows registry whose path is *HKLM\SOFTWARE\ WOW6432Node\EDITRAN*. The only value that is always created is ***InstallPath*** with the root directory of Editran. However, there are other values that a user with permissions can create to establish some configuration settings that allow the system behavior to be parameterized. These values are:

| Variable             | Description                                                                                                                                                                                                                                                         | Type       | Supported Values                                         | Default Value         |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -------------------------------------------------------- | --------------------- |
| **DataPath**         | Directory for EDITRAN data files: configuration and temporary files (buffers, state, etc.). In this version there is the possibility of separating them from the product installation path by defining the route where the processes look for and save those files. | REG\_SZ    | Existing path with permissions                           | the InstallPath value |
| **LogLevel**         | Determines the level of log information recorded during transmissions.                                                                                                                                                                                              | REG\_DWORD | 1(info), 2(trace), and 3(debug)                          | info                  |
| **GLogPresentacion** | This value will be created if you want Editran to record the information in different log files for each *Presentation*. These files are saved in the log subfolder named as \<presentation>.log.                                                                   | REG\_DWORD | If the value is not defined, the log file is unique.     |                       |
| **GUpgrade**         | Determines the parameters that Editran passes to the previous user programs. If they were developed for versions earlier than 5.2.0, and it is not possible to adapt them, this value will be created to continue working in compatible mode.                       | REG\_DWORD | 0(standard parameters), 1(parameters in compatible mode) | standard mode         |
| **Sleep**            | If necessary, it allows you to adjust the delay time when starting the Base service, since for it to start correctly the License service must be active.                                                                                                            | REG\_DWORD | integer                                                  | 3 (seconds)           |
| **ReportPath**       | This value activates the optional functionality of creating reports of transmitted files.                                                                                                                                                                           | REG\_SZ    | Existing path with permissions                           |                       |
| **ReportLevel**      | Level of detail in the generation of file reports.                                                                                                                                                                                                                  | REG\_DWORD | 0(basic), 1(extended)                                    | basic                 |

## License Server configuration settings

No configuration adjustments are necessary for the license server, unless you want to set listening ports different from those used by default by the server.

The configurable parameters are located in `bin\SL\App.conf` and are the following:

* **BASE** The installer already leaves this parameter configured with the path `<home-editran>\bin\SL`. It is the root directory of the license service and its logs, reports, temporary files, etc. will be generated there.

  ```txt
  # BASE Dir of the Application
  BASE: /opt/editran/bin/SL
  ```
* **SL.PORTSRV** (optional)

  Include it if you want to use a license port different from the default (**50777**).

  ```txt
  # SL (License Server)
  #-------------------------
  SL.PORTSRV: 50777
  ```

  If it is customized, the variable must also be included in the environment variables **LICSRV** in the user variables of the user who administers Editran, with the same port as in the previous point.

  ![LICSRV environment variable](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-e34c6f93bd878413fa8ef22123b2cad262de2bf5%2Fimage28.png?alt=media)
* **FC.PORTSRV** (optional)

  Include it if you want to use a billing port different from the default (**50778**).

  ```txt
  # FC (Billing Server)
  #---------------------------
  # Day of the month the report is generated
  #DIAINF: 1
  FC.PORTSRV: 50788
  ```

  If it is customized, the variable must also be included in the environment variables **FACTSRV** in the user variables of the user who administers Editran, with the same port as in the previous point.

  ![FACTSRV environment variable](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-37f30bb6639c3199a5632df0a2c81bdcc4b4a4b7%2Fimage44.png?alt=media)
* **DIAINF** (optional, only if the license includes billing)

  Used to choose the day on which the billing results report is generated. By default it is the first day of the month; you only need to uncomment it if you want another day.

  ```txt
  # FC (Billing Server)
  #---------------------------
  # Day of the month the report is generated
  DIAINF: 2
  ```

> Note: Ports reserved for Editran should not be used as candidate ports for the license server.

## Version update

### Preliminary steps

For downloading software and manuals of **Editran 5.2.1.x** you can visit the product website:

<https://www.onesait.com/editran/resources>

In the tab **Resources** you will find the latest available version and its manuals.

Throughout the installation/upgrade process you must be an administrator user and have edit permissions both in the Windows registry and in the task scheduler.

If you need help, you can contact the support team at:

* Support phone. - 91.480.80.80
* E-mail address.- <editran@minsait.com>

### Source version 5.2.1.3 or higher

If the previous version is 5.2.1.3 or higher, it is no longer necessary to uninstall it first. When you run the installer, it will detect that a previous version is installed and will guide you through the upgrade.

To carry out the upgrade in these cases, you must follow the steps below.

* Close any Editran software (menup.exe, menug.exe, menugt.exe, editrangc.exe...).
* Make a backup copy of the Editran directory from the previous version (without deleting or moving the original folder)
* Run the Editran/Windows installation package. The following screen will appear, and you must click the Next button if you want to continue with the Editran upgrade.

![update - step 01](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-6889f03f661961a37b132b057143050993494ea4%2Fimage29.png?alt=media)

* The following screen shows the data from the previous Editran installation. You must click the Next button to continue with the version upgrade.

![update - step 02](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-4c737e84e7972fab22f22f3f20fa3aa61df6650b%2Fimage30.png?alt=media)

* The redistributable package must be installed on the computer **Microsoft Visual C++**. If you do not have it installed, you must select the option offered on the following screen:

![update - step 03](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-aa1a8f3f0b8ad2f0ab5cbc5e3574f5abc9ec56c1%2Fimage7.png?alt=media)

> If you want to install later, you must leave the check box unchecked and use the executable located in the subdirectory `Editran\bin\vc160\vcredist_x86.exe`.

> It is recommended to uninstall the redistributables installed in versions prior to Editran 5.2.1.4 (Microsoft Visual C++ 2008 Redistributable).

* On the next screen, you are asked to configure the periodicity of the integrity-check task for this installation:

![update - step 05](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-5d2e4bc3d676dcb5dd76dae04623b83bf6fd050e%2Fimage32.png?alt=media)

* Next, it indicates that the software is ready to be installed, with the option to go back and modify anything you want:

![update - step 06](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-9787423a5ab4b0ba6ce5bd398dce529a84a0eae2%2Fimage33.png?alt=media)

* When you continue with the upgrade, the screen showing the progress of the process will appear:

![update - step 07](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-4bc671f4034b8f94d703a6eaea1cdeb53961db81%2Fimage34.png?alt=media)

* If the option to install the redistributable package had been checked **Microsoft Visual C++**, at this point the following screen will be shown and you must press the **Install**:

![redistributables](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-0d8a622342936b2c6c0dc2d46d543f98f32a7173%2Fimage8.png?alt=media)

If your computer already has the package installed, the following screen will appear and you only need to press the **Close** button **Yes** in the pop-up window that will be shown below.

![redistributables](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-5820f4de7d26902f2da02c05defef702f594ec4b%2Fimage41.png?alt=media)\
![redistributables](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-eda18b2c20177b3a421527694d6be960385ae062%2Fimage42.png?alt=media)

* Once all the components of the Editran package have been extracted, completion will be notified.

![update - step 08](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-4aeba31224fb99ab8448217e74943f2e6563494c%2Fimage35.png?alt=media)

* If you need to review the upgrade information, it is recorded in a log file in the %Temp% directory.

> \***Note**: If, after an upgrade to version 5.2.1.4 or higher, it is necessary to restore the previous version of Editran, the executable **restore.exe** located in the product installation directory will allow you to do so.\*\*Before running it, you must close any Editran software (menup.exe, menug.exe, menugt.exe, editrangc.exe...) and exit any program that is accessing the product installation directory.
>
> *It is not recommended to perform this operation except in very specific and critical situations.*

### Source version 5.2.0 or lower

If the upgrade is to be performed on the same server where the previous version was installed, you must first carry out the following steps:

* Stop the services of **Editran.**
* If you have contracted the Editran/GT module, stop the service **EditranGTServ**.
* Close any Editran software (menup.exe, menug.exe, menugt.exe, editrangc.exe...).
* Make a backup copy of the Editran directory from the previous version (without deleting or moving the original folder)
* Uninstall Editran:

  The uninstallation must be done from Add or Remove Programs in the Control Panel.

  Verify that the services from the previous version have been removed. If they still appear, from the Windows Command Prompt (cmd.exe) run as administrator, you must use the following commands:

```bash
sc delete ediserv

# If you have the Editran/GT module:

sc delete editrangtserv
```

* Delete the original Editran folder.
* Start the **installation** of the product.
* Place the product license (**licencia.dat**) in the subdirectory **bin/SL** before continuing with configuration migration.

If the new version is going to be installed on a different server, the installation process is the same as explained in the section [installation](#instalación) of this manual. Since this is an upgrade, it will be necessary to copy the configuration files to be migrated to the new server as explained in the next section.

#### Migrate configuration

> When you have the licensed product, run **bin/Migrar.exe** as Administrator to migrate all configuration from the previous version of Editran to the new one.

First you must choose:

* The ***directory*** where the profiles from the previous version of Editran are located. If the upgrade is carried out on the same server, it will be enough to select the backup folder of the previous version. If it is upgraded on a different server, you will need to create a folder and copy the following files there:

| Source version       | Source data folder           |
| -------------------- | ---------------------------- |
| **Earlier than 520** | editranp.cfg                 |
|                      | editrang.cfg                 |
|                      | ckds.des                     |
|                      | √ with license **editrangt** |
|                      | editrangt.cfg                |
|                      | √ with license **rsa**       |
|                      | controlGC.cfg                |
|                      | ckds.rsa                     |

| Source version | Source data folder     |
| -------------- | ---------------------- |
| **520**        | Folder **cfg** in full |
|                | bin/ckds.des           |

> ***Note**: In the event that the source installation is 5.2.0, and you were working with a configuration data directory different from the installation directory, the source directory you must enter is actually the one defined in the DataPath variable. With one exception: before migrating, you must copy the file bin/ckds.des from the original installation into the DataPath folder.*

* The ***version*** source Editran version for the migration (version to which the profiles correspond)
* In older versions there could be profiles for X25 and X28 networks; if you check the box ***TCP sessions only*** only those configured for TCP will be migrated (which is the appropriate option). *(Note: If checked, the migrar.out file will contain WARNING messages for the EDITRAN/G submissions that will not have been migrated because the EDITRAN/P sessions that used X25 or X28 are missing).*

Click the **Migrate** button to start the migration:

If the process finishes correctly, some messages similar to the following will appear:

![Editran profile migration](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-2770f173402f12e88ea854c3af8676ea4c8a3f8c%2Fimage36.png?alt=media)

Click **Exit** to finish the migration.

If errors appear, you should consult the log files **migrar.out** and **Migrar.log** (located in the subdirectory **log)**, and contact Editran Technical Support requesting a Windows technician to assess those messages, since in most cases they are *warning* messages due to validations between versions and they do not affect data consistency in the migration (they are the ones recorded as "WARNING").

### Adapting User Programs from previous versions

If there are specific User Programs that run as pre- and post-transmission procedures, you must adapt them taking into account the following changes.

* In the pre-transmission programs the parameter list is: Submission, direction, local code, remote code and application.
* In the post-transmission programs the parameter list is: Submission, direction, local code, remote code, application and the absolute path of the file with the list of sent or received files.
* The post programs are only executed when the transmission **finishes successfully**. In any other case, including errors in the upload and download process, the program of **exception**.
* It is recommended that these scripts be left in **bin/utils**, to differentiate them from the product software.
* In the configuration migration, the default Editran User Programs in the pre-transmission ones (U\_PRVEMI and U\_PRVREC) and in the post-transmission ones (U\_PSTEMI and U\_PSTREC) of each submission are removed, unless you had defined your own. If you had modified those default Editran User Programs, we recommend that you give them a different name, place them in the subdirectory **bin/utils** and configure them in the submissions you are interested in.

The following table indicates the arguments of each type of User Program:

| Variable | Exception                      | Pre                      | Post                                                |
| -------- | ------------------------------ | ------------------------ | --------------------------------------------------- |
| 0        | Program name                   | Program name             | Program name                                        |
| 1        | Presentation                   | Presentation             | Presentation                                        |
| 2        | Sending (E) or Receiving       | Sending (E) or Receiving | Sending (E) or Receiving                            |
| 3        | Transmission result (4 digits) | Local Code               | Local Code                                          |
| 4        | Local Code                     | Remote code              | Remote code                                         |
| 5        | Remote code                    | Application              | Application                                         |
| 6        | Application                    |                          | Path of the file with the list of transmitted files |

In the version upgrade, the production environment is left prepared to work with User Programs from previous versions, although adaptation to the new format is recommended. In general, the changes to be made in this process are:

* If your scripts are using the arguments with which Editran invokes them, adapt the necessary values to those of the current version (For example, if you used the value 4 to obtain the Local code in a post-receipt User Program, you must change it to 3.).
* Delete the Windows Registry value named **GUpgrade** in the key `HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\EDITRAN`
* If the Editran service was running, restart it so that the changes are applied.

## Common errors

### During installation

#### It was not possible to create the Editran License Service service

This error occurs when the user performing the installation does not have the necessary permissions to create the Editran configuration in the Windows registry.

### During Migration

#### The migrated version was not registered

If this Error message appears, the problem is due to the Migration process not having permission to write a necessary configuration in the Windows registry.

![wrong variables](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-70636696bc945a41b0fa636e8f982b3ee8f0342b%2Fimage37.png?alt=media)

You could run the migration again by running the process with the Run as Administrator option, although it is enough to create the entry in the Windows registry **GUpgrade** with the value of the migrated version.

![registry error](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-442abe3fe7405f478f0cf8c318a5e2f9b41aeeeb%2Fimage38.png?alt=media)

#### Does not exist **controlgc.cfg**

Although it always appears as ERROR, it should be ignored if you did not have a license **rsa** in the migrated version.

![wrong variables](https://2807498471-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2W4cn5C1WDTJzDOR25es%2Fuploads%2Fgit-blob-dd710de5a3c8c45ebe3b69eb2ac0eefed11f486b%2Fimage39.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.editran.onesait.com/documentacion-editran/open-v5.2.1-en/windows/instalacion.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
