[Solved] Error 1320. The specified path is too long - Advanced Installer Community
hehogixoc
Posts: 2
Joined: Wed May 27, 2015 12:08 pm

[Solved] Error 1320. The specified path is too long

Hi there, I am trying to build MSI install-able package for NodeJS server application. So, I have created a simple project and build MSI package, but during the installation process I have got this error:

Code: Select all

Error 1320. The specified path is too long: C:\Program Files\{ApplicationName}\{NodeJSApplication}\node_modules\bower\node_modules\update-notifier\node_modules\latest-version\node_modules\package-json\node_modules\got\node_modules\duplexify\node_modules\end-of-stream\node_modules\once\node_modules
So, how I can avoid this error? I can't change NPM/Boower folder tree indentation level to reduce the full path.

System: Windows 7 Professional SP1 x64, Advanced Installer 12.1.
Thanks in advance.

P.S: I have read this topic: http://www.advancedinstaller.com/forums ... f=2&t=2221, but it didn't help me.
Last edited by hehogixoc on Thu May 28, 2015 10:01 am, edited 1 time in total.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Error 1320. The specified path is too long

Hello and welcome to our forums,

I'm afraid this error is caused by the maximum path length accepted by Windows. The maximum path length accepted by Windows is of 260 characters. If your installation path exceeds this limit, then the above error will be thrown.

The only solution for this limitation will be to shorten your installation paths so they don't ever exceed the 260 characters limit.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hehogixoc
Posts: 2
Joined: Wed May 27, 2015 12:08 pm

Re: Error 1320. The specified path is too long

Thank you. You are right, the string length was 261. But I doesn't calculated the length of string and thought that the cause in MSI restrictions.

Code: Select all

In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: [Solved] Error 1320. The specified path is too long

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”