Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

2893 Error: too long path specifyed


5 replies to this topic

nesesser

nesesser
  • Full Members
  • 62 posts

Posted 30 January 2007 - 12:49

Hi all.
I faced with a such feature of Windows Installer - when I enter a long path to INSTALLDIR property appears 2893 Error (in attached file).
In log-file appears:
QUOTE
DEBUG: Error 2893:  The control Tail on dialog InstallChangeFolder can accept property values that are at most 240 characters long. The value C:\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\
folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\
folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\
folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\ exceeds this limit, and has been truncated.

240 characters - whence this number?

Q:
Is it limit of Windows Installer or it is a bug?
What the maximum path length which I can specify?

Attached Images

  • 2893error1.JPG

Edited by nesesser, 30 January 2007 - 12:52.


Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 31 January 2007 - 09:33

The maximum path length depends on the file system of the destination. For instance, NTFS on Windows 2003 Server supports a maximum length of 260.
You probably try to install some files and/or folders in INSTALLDIR, and the length of these files plus the length of the new value of INSTALLDIR will exceed the limit of the file system.

nesesser

nesesser
  • Full Members
  • 62 posts

Posted 31 January 2007 - 10:28

As far as I know "NTFS on Windows 2003 Server supports a maximum length of 260" for file (or folder) names. But there are other thing.
Here we have a limitation of whole path. So, it's impossible to specify path that exceeds 240 length (or 260 - a little difference).

I can create C:\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\
folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\
folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\
folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\folder1\
folder in my Windows 2003 Server system - and everything will be ok.
But if I'll try to install my product in this folder - there would be an error.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 31 January 2007 - 17:16

Looks like this is a limit of the text control that should display the path on a dialog, not a problem with the path itself. Not sure if you could change the control to accept more characters.

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 31 January 2007 - 22:47

In Windows 2003 with NTFS a limitation on the complete path exists too, and it's something like 260. To check this yourself, create a file C:\Folder.bat and type:

:again
md Folder1
cd Folder1
if (%errorlevel%)==(0) goto again

run this, after a while you get the error
"The file name or extension is too long."

You can go in the created tree, and find out that you cannot create files.

(For some reason my system -Virtual PC- allows no more than 245 chars for the complete path).

nesesser

nesesser
  • Full Members
  • 62 posts

Posted 01 February 2007 - 07:10

Thnks a lot to your support, friends.
And I'm apologizing - there are really Windows limitation.
I tried to create that Folder1-path. But error message appeared in some moment.
I counted path length - it was 242 chars. And it was forbidden to create anything in this folder.

So, I conclude that it's a Windows limit, because the limit of edit control are 2147483646 characters (according to Edit Control topic).

Thnks a lot.