The architecture of CODESYS makes it possible to install several versions of CODESYS in parallel on one computer, even in the same directory.

This description provides recommendations regarding what needs to be observed as well as the advantages and disadvantages of the different variants.


Versions < SP13:

Installation in the same directory

Several CODESYS versions can be installed at the same time in the same directory.

In doing so the following must be observed (recommendation):

  • Never install an older CODESYS version over a newer one
  • Never uninstall an older CODESYS version

This can lead to unexpected effects.

Advantage

  • All previously installed packages will be available automatically after the installation of the new version.

Disadvantage

  • Only the newest version of CODESYS Control Win V3 and the gateway are available
  • Problems with the installation are difficult to solve without affecting the other installations

Installation in different directories

You can also install each version in a separate directory.

Advantage

  • You can uninstall each version separately
  • Gateway and CODESYS Control Win V3 exist separately for each version

Disadvantage

  • All previously installed packages are not automatically included in the new CODESYS version and must be installed again.


Versions >= SP13:

Installation in different directories (mandatory)

An empty directory is required for the installation.

Advantage

  • You can uninstall each version separately
  • Gateway and CODESYS Control Win V3 exist separately for each version

Disadvantage

  • None

It is possible to import packages from the previous installation during the first start-up of the new version.


Please note that in all cases the repositories are commonly used by all CODESYS versions. This can lead to unexpected behavior

  • when creating new projects
  • when diverting library placeholders
  • when referencing libraries with "latest" (which one should never do, except for interface and use case libraries)



For advanced users

Versions can also be installed completely separately (including the repositories)

Proceed as follows to do this:

  1. Make sure that the directory <C:\ProgramData\CODESYS> does not exist, or rename it if necessary.
  2. Install the first CODESYS version.
  3. Move the directory <C:\ProgramData\CODESYS> to a new directory, which will be unique to this CODESYS version (e.g. to <C:\ProgramData\CODESYS <CODESYS version>>)

    Please note, a non-admin user has no write access to <C:\Program Files\>
    So it is recommended that the newly created directory is instead stored in <C:\Program Data\>

  4. Open the file <CODESYS_install_dir>\CODESYS\Settings\RepositoryLocations.ini and replace all paths to <C:\ProgramData\CODESYS> by the new path (search/replace).
  5. Proceed in exactly the same way with the second CODESYS installation.