View Single Post
Old 13th December 2013, 23:19   #1
bnicer
Senior Member
 
Join Date: Feb 2005
Location: London
Posts: 218
MAX_CHAR in UNICODE

I read here that when calling kernel32::CopyFile, you can extend the UNICODE path length beyond MAX_PATH characters to 32,767 wide characters by prepending '\\?\' to the path.

Would there be any reason not to prepend '\\?\' to a path, I thought, and I tested kernel32::CopyFile with a ridiculously long install path.

It didn't work, because the MAX_PATH of 256 characters is defined in NSIS. I wonder, shouldn't the UNICODE NSIS version extend the install path length limit?
bnicer is offline   Reply With Quote