I have been making an installer for an application bundle that includes Cygwin.
As this application is fairly complex, and symlinks are common in Linux installations, Cygwin uses them too, but they are broken with NSIS, and instead files are copied. This is similar to my other report, but with Cygwin configured to use old-style .lnk links instead. The resulting bundle does not work, and Cygwin no longer recognises the .lnk files as Cygwin symlinks - some of their properties have been changed. I have tried with different compression options, but nothing seems to make any difference.
Has anyone else encountered an issue like this?
NSIS does not modify the content of included files in any way. It is generally not possible to move .lnk files between machines because they are not relative, they usually the include absolute path to their target. I don't know if this applies to Cygwin links.
It looks like Cygwin requires the read only attribute on lnk files. Make sure you do
File /r /a Cygwin\*.Using /a /r works, thanks. Not sure how to mark as solved.
Last edit: Hamish McIntyre-Bhatty 2020-10-21