Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Error Handling when $INSTDIR > MAX_PATH? (http://forums.winamp.com/showthread.php?t=254961)

Jim Bosworth 6th September 2006 14:30

Error Handling when $INSTDIR > MAX_PATH?
 
Hi there!

I got a small problem. When the user selects an install directory that is very close to MAX_PATH (something around 255 characters), then NSIS will skip all files and directories that would be longer than MAX_PATH during installation.

Is there a way to detect these skips? Or file skips in general? I guess I am missing something very obvious here. I must have somehow deactivated some standard behaviour.

Any suggestions are welcome - and sorry for the noob question!

Have a nice day,

Jim

Backland 6th September 2006 15:01

Have you tried converting the install directory path to its short version? From the manual:


4.9.3.9 GetFullPathName
[/SHORT] user_var(output) path_or_file
Assign to the user variable $x, the full path of the file specified. If the path portion of the parameter is not found, the error flag will be set and $x will be empty. If /SHORT is specified, the path is converted to the short filename form.

Jim Bosworth 7th September 2006 06:16

That is no practical solution I'm afraid. Let me rephrase my question: How do I get notified if I/O errors occur during installation?

Cheers,

Jim

kichik 8th September 2006 16:03

IfErrors should tell you if File fails.


All times are GMT. The time now is 04:15.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.