Anders - 1 day ago
  • GetTempPath/GetTempPath2 are documented as "The maximum possible return value is MAX_PATH+1 (261)" so your machine setup is broken if you hit that.
  • A broken cmd.exe is a bit of a deal breaker.

I would almost be more in favor of aborting with an error in makensis when %TEMP% and %TMP% are too long.

Why are you hitting this issue? Can't you just use symlinks/junctions/subst to shorten the file root path?