Enable long path support

2024/1/21 |

This article describes how to enable long path support on CLEAR Engine.

In this article, you will learn how to:

  • Enable long path support on CLEAR Engine.

At the end, you will be able to enable long path support on CLEAR Engine.

Enable long path support

Long path support is only available on Windows Server 2016 (OS Build 14393) and later. To enable it, follow these steps:

  1. Open PowerShell as administrator.
  2. Enter the following command to enable long path support in the registry:

     New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value '1' -PropertyType 'DWORD' -Force
    

    The registry key can also be controlled via Group Policy at Computer Configuration > Administrative Templates > System > Filesystem > Enable Win32 long paths.

  3. In PowerShell, enter the following command to open the Web UI configuration file with the default text editor:

     "C:\Program Files\Lucent Sky\CLEAR Web\web.config" | Invoke-Item
    
  4. Locate the <ClientFileValidationEnabled> node in the <configuration/appSettings> section, and change its value to false.
  5. In PowerShell, enter the following command to restart CLEAR Engine:

      Stop-Service "CLEAR Engine"; Start-Service "CLEAR Engine"
    
  6. For Lucent Sky AVM cluster, repeat the steps above on each node in the cluster.

Even with Win32 long paths enabled, some tools used by CLEAR Engine might still not support long path.