khoshsirat
Posts: 2
Joined: Mon May 01, 2017 11:48 am

Installing long nested directories

Mon May 01, 2017 12:13 pm

Hi,

My project has many nested folders such that the length of some paths exceeds the 260 characters limit on windows.

When I use CAB as archiving method, there's no problem.

But when I choose LZMA (either 1 or 2), the resulting installation file encounters an error:

Error reading from file: C:\Users\...(a long path more than 260 characters).
Verify that the file exists and that you can access it.
Untitled.jpg
Untitled.jpg (52.39KiB)Viewed 40126 times
I'm using Advanced Installer 13.5 on Windows 10 build 14393

mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Installing long nested directories

Tue May 02, 2017 8:15 am

Hello and welcome to our forums!

This is a known Operating System limitation. Please note that the maximum file path size accepted by Windows is 260 characters.

We have tested your path and others over 260 chars and this error either appears on both LZMA and CAB archive builds when the paths exceed 260 chars, or not at all when paths are under 260 chars.This doesn't seem not related to the type of archiving. The solution for this limitation would be for you to use paths under 260 characters. Your path has 262 characters so please try to shorten it by 3 characters and see how it goes.

If the error persists, can you please give us more details regarding the scenario when you use CAB archive? Also, send us the .AIP (project) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them.

Hope this helps,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

khoshsirat
Posts: 2
Joined: Mon May 01, 2017 11:48 am

Re: Installing long nested directories

Thu May 04, 2017 10:59 am

Here is the scenario:

Create a new simple project.

Add some nested folders with path more than 260 characters to 'Application Folder'.

Set 'Package Type' to 'Single EXE setup' (upgrade project to professional).

Build the project (The default archiving method is CAB).

Install the resulting file: It works WITHOUT ERROR


Now uninstall it.

Change the archiving method to LZMA.

Build the project (using LZMA and 'Single EXE setup').

Install the resulting file: It does NOT work

The error happens while Copying new files.

I think maybe it's because when using LZMA, the installer first extracts files to a temporary folder and then tries to copy them. but on CAB mode, it extracts files directly to the destination path.

Advanced Installer 13.5 build 74683 on Windows 10 build 14393
Untitled2.jpg
Untitled2.jpg (57.65KiB)Viewed 40108 times

mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Installing long nested directories

Thu May 04, 2017 2:26 pm

Hello,

Please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com for both working and not working situations, so we can investigate them.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”