Menu

#1256 Cygwin .lnk symlinks are broken

3.0 Series
open
nobody
Cygwin (2)
5
2020-10-21
2020-10-17
No

I have been making an installer for an application bundle that includes Cygwin.

  1. 3.06.1
  2. There is no error message.
  3. Can provide upon request, but might take a little while.
  4. Nothing is wrong with the UI

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?

Discussion

  • Anders

    Anders - 2020-10-17

    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.

     
    • Anders

      Anders - 2020-10-17

      It looks like Cygwin requires the read only attribute on lnk files. Make sure you do File /r /a Cygwin\*.

       
  • Hamish McIntyre-Bhatty

    Using /a /r works, thanks. Not sure how to mark as solved.

     

    Last edit: Hamish McIntyre-Bhatty 2020-10-21

Log in to post a comment.

MongoDB Logo MongoDB