10.3.7. Location of software licenses files
A software license is a file with a .lic extension that can locate in different locations of the file system.
TIP. Do not store one software license file at the same time in several different directories available to 1C:Enterprise applications. This may cause the license file to become unusable due to violation of the license agreement.
The software license is obtained as follows:
- A list of software license files is generated for all directories where software licenses may locate.
- For each file in the list, the required license (client or server) is obtained before the license is successfully received or before the list of software license files is prepared.
10.3.7.1. On Windows
In Windows, software license files can be located in the following directories (directories are listed in the search order):
- Directory of configuration files for a specific platform version. The default directory is C:\Program Files\1cv8\A.B.C.D\bin\conf.
- %USERPROFILE%\Local Settings\1C\1cv8\conf (%LOCALAPPDATA%\1C\1cv8\conf for Windows Vista and later) directory of the user on whose behalf the application runs.
- The directory specified in the conf.cfg file located in the bin\conf directory of the specific version.
- %ALLUSERSPROFILE%\Application Data\1C\1cv8\conf (%ALLUSERSPROFILE%\1C\1cv8\conf for Windows Vista and later) data directory for all users of the computer.
- %ALLUSERSPROFILE%\Application Data\1C\licenses (%ALLUSERSPROFILE%\1C\licenses for Windows Vista and later) data directory for all users of the computer.
- %ALLUSERSPROFILE%\1C\licenses (%ProgramData%\1C\licenses for Windows Vista and later) data directory for all users of the computer.
If no license was found in any of these directories, the %APPDATA%\1C\1cv8\ directory is used for search. If there is a location.cfg file in this directory, the directory specified in the location parameter (see article location.cfg) will be used for the search.
10.3.7.2. On Linux
In Linux, software license files can be located in the following directories (directories are listed in the search order):
- The conf directory of a specific version:
- 32-bit version: /opt/1cv8/i386/A.B.C.D/conf.
- 64-bit version: /opt/1cv8/x86_64/A.B.C.D/conf.
- The conf directory of the root installation directory: /opt/1cv8/conf.
- The ~/.1cv8/conf directory (~ is the home directory of the user on whose behalf 1C:Enterprise operates).
- The directory specified in the conf.cfg file located in the conf directory of the installed version. For more information about the conf.cfg file format, see article conf.cfg.
- The /var/1C/licenses directory.
If no license was found in all of these directories, the ~/.1cv8/1C/1cv8/ directory is used for search. If there is a location.cfg file in this directory, the directory specified in the location parameter (see article location.cfg) will be used for the search.
10.3.7.3. On macOS
In macOS, software license files can be located in the following directories (directories are listed in the search order):
- The conf directory of the installed version. The path to this directory looks as follows: /opt/1cv8/A.B.C.D/conf.
- The ~/.1cv8/conf directory (~ is the home directory of the user on whose behalf 1C:Enterprise operates).
- The directory specified in the conf.cfg file located in the conf directory of the installed version. For more information about the conf.cfg file format, see article conf.cfg.
- The /var/1C/licenses directory.
If no license was found in all of these directories, the ~/.1cv8/1C/1cv8/ directory is used for search. If there is a location.cfg file in this directory, the directory specified in the location parameter (see article location.cfg) will be used for the search.