Archive: NSIS and long pathes?


NSIS and long pathes?
Hello,

We are providing a nsis installer for our eclipse based product. On uninstallation the uninstaller offers the choice to remove the workspace that eclipse created. This works fine as long as the pathes the user created in eclipse are shorter than 255 (or is it 260?) characters. When the pathes get longer (eclipse 3.3 with java 1.5 or higher works with long pathes) our users face a real problem removing their workspace again as eclipse was alreay uninstalled and you can't remove such pathes with the windows explorer.
Of course we could try to remove the workspace first and if that fails keep the eclipse intact however that would leave our users with a half deleted workspace which may (or may not) cause problems in our product (and is not desireable in any case).

So my question is: Is there any support for long pathes in nsis? Possibly trough a plug in? Or is it planned in a future version?

Thanks in advance.
Patrick


the normal nsis build has a max string length of 1024, so the limit must be in one of the windows api it calls (I know some api's support a \\?\ prefix for longer paths but NSIS does not support those AFAIK (and it would only work in the unicode build))

As a workaround, you could call DeleteFileW and/or RemoveDirectoryW with a "\\?\" prefix using the system plugin.

Other tricks that MAY possibly work:
-set the current directory as deep as it will go and delete with a relative path
-play tricks with subst.exe