Menu

#1117 copy shortcut does not work 3.0b1

3.0 Alpha Series
open-works-for-me
nobody
None
5
2017-06-12
2015-04-16
retep
No

Win 7, x64 - I can create a shortcut as a .lnk file and copy it in windows.
nsis does not like to copy it as a file.

Related

Bugs: #1117

Discussion

  • Anders

    Anders - 2015-04-16

    A .lnk file is just a normal file and NSIS does not check the file type. Please provide a example that reproduces the problem...

     
  • retep

    retep - 2015-04-16

    Example attached.

     
    • Anders

      Anders - 2015-04-17

      You forgot that the shortcut has a .lnk extension, try File "SVIPDB.lnk"

      Note: You should probably create the shortcut at run-time with CreateShortcut.

       
      • retep

        retep - 2015-04-20

        Same error even with .lnk added.I have used CreateShortcut is some cases and it works.However, developing with MS Office applications, especially Accessand Excel, there are lots of command line parameter options and Iusually just copy links that have been already created.

         On Friday, April 17, 2015 11:32 AM, Anders wrote:
        

        You forgot that the shortcut has a .lnk extension, try File "SVIPDB.lnk"Note: You should probably create the shortcut at run-time with CreateShortcut. [bugs:#1117] copy shortcut does not work 3.0b1Status: open
        Group: 3.0 Alpha Series
        Created: Thu Apr 16, 2015 06:18 AM UTC by retep
        Last Updated: Thu Apr 16, 2015 09:31 PM UTC
        Owner: nobodyWin 7, x64 - I can create a shortcut as a .lnk file and copy it in windows.
        nsis does not like to copy it as a file.Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/nsis/bugs/1117/To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #1117


        Last edit: Anders 2015-07-27
        • Anders

          Anders - 2015-04-20

          Works for me:

          RequestExecutionLevel user
          OutFile test.exe
          InstallDir $Temp\Test
          
          Page Directory
          Page InstFiles
          
          Section
          File Test.nsi
          File Test.lnk
          SectionEnd
          

          Gives me

          ...
          Processing script file: "Test.nsi"
          OutFile: "test.exe"
          InstallDir: "$Temp\Test"
          Page: Directory
          Page: InstFiles
          Section: ""
          File: "Test.nsi" [compress] 124/166 bytes
          File: "Test.lnk" [compress] 606/1122 bytes
          SectionEnd
          
          Processed 1 file, writing output:
          ...
          

          You should try Process Monitor and see if it gives you any clues as to why it cannot find the file...

           
          • retep

            retep - 2015-04-21

            procmon output attached.It tells me the file is not found.

             

            Last edit: Anders 2015-04-22
            • Anders

              Anders - 2015-04-22

              I don't see any relevant information in your screenshots. You can try attaching the Process Monitor log (.pml file) that you can export but I'm still guessing it is just a path issue on your end...

               
        • 賈可

          賈可 - 2015-12-31

          The extension ".lnk" is always hidden. You really add extension in your script, but you also add an extra ".lnk" to the shortcut file, so the real name changes to "SVIPDB.lnk.lnk", still could not be found. To see the full file name, you can open "cmd" and drag the link file to the console window, or using "dir" command to list files in the directory.

           

          Last edit: 賈可 2015-12-31
  • Anders

    Anders - 2017-06-12
    • status: open --> open-works-for-me
     

Log in to post a comment.