Long Path Aware / MAX_PATH issue - Advanced Installer Community
MaxS
Posts: 2
Joined: Thu Jun 12, 2025 2:53 pm

Long Path Aware / MAX_PATH issue

Hi, we're using Advanced Installer v18 and are encountering the issue where files fail to install with the error "Error reading from file", due to the MAX_PATH limitation (ex. the full path is longer than 260 characters).

Code: Select all

MSI (s) (60:04) [16:47:03:785]: File: C:\blah\MyProduct\webapps\server\WEB-INF\classes\com\mycompany\MyProduct\server\web\rest\admin\MyVeryLongClassName............$MyVeryLongInnerClassName.....................class;	To be installed;	Won't patch;	No existing file
MSI (s) (60:04) [16:47:03:785]: Source for file 'MyVeryLongClassName............$MyVeryLongInnerClassName.....................class' is uncompressed, at 'C:\Users\MyProduct\AppData\Roaming\My Company Name...\MyProduct Server XXXX.XXXX.XXX\install\B8F50FD\webapps\server\WEB-INF\classes\com\mycompany\MyProduct\server\web\rest\admin\'.
MSI (s) (60:04) [16:47:03:789]: Error: Wrong Long Path Name: C:\Users\MyProduct\AppData\Roaming\My Company Name...\MyProduct Server XXXX.XXXX.XXX\install\B8F50FD\webapps\server\WEB-INF\classes\com\mycompany\MyProduct\server\web\rest\admin
MSI (s) (60:04) [16:47:03:789]: Error: Wrong Path Name: 
MSI (s) (60:04) [16:47:03:791]: Error: Wrong Long Path Name: C:\Users\MyProduct\AppData\Roaming\My Company Name...\MyProduct Server XXXX.XXXX.XXX\install\B8F50FD\webapps\server\WEB-INF\classes\com\mycompany\MyProduct\server\web\rest\admin
MSI (s) (60:04) [16:47:03:791]: Error: Wrong Path Name: 
MSI (s) (60:04) [16:47:03:791]: Error: This file path is updated, hence failing to create: C:\Users\MyProduct\AppData\Roaming\My Company Name...\MyProduct Server XXXX.XXXX.XXX\install\B8F50FD\webapps\server\WEB-INF\classes\com\mycompany\MyProduct\server\web\rest\admin\MyVeryLongClassName............$MyVeryLongInnerClassName.....................class
MSI (s) (60:04) [16:47:03:791]: Note: 1: 1309 2: 0 3: C:\Users\MyProduct\AppData\Roaming\My Company Name...\MyProduct Server XXXX.XXXX.XXX\install\B8F50FD\webapps\server\WEB-INF\classes\com\mycompany\MyProduct\server\web\rest\admin\MyVeryLongClassName............$MyVeryLongInnerClassName.....................class 
We've tried enabling "LongPathsEnabled" in the registry as per Microsoft https://learn.microsoft.com/en-us/windo ... s=registry, but the issue persists. According to the article, in addition to the registry setting, the application itself must be "Long Path Aware".

Is Advanced Installer "Long Path Aware"? If not are there any plans to support long path names in the future? Thanks!
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: Long Path Aware / MAX_PATH issue

Hello,

Please note that we currently have this on our TODO list of improvements.

I will update this thread as soon as it will be implemented in Advanced Installer - please note that for now the priority is quite low due to the low number of requests.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MaxS
Posts: 2
Joined: Thu Jun 12, 2025 2:53 pm

Re: Long Path Aware / MAX_PATH issue

Fair enough, thanks for the quick response.
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: Long Path Aware / MAX_PATH issue

You are alaways welcome!

If possible, could you pleaase try to create a sample project that reproduces this and forward that to me so I can run some more tests on my end? Or simply forward me a test-case to reproduce this, if you can not create a sample project?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”