Archive: Error Handling when $INSTDIR > MAX_PATH?


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


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.


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


IfErrors should tell you if File fails.