Menu

#850 CreateShortCut "$SMSTARTUP\x.lnk" "$CMDLINE" create bad link

2.0 Series
closed-invalid
nobody
General (291)
5
2008-12-19
2008-12-19
Anonymous
No

When trying to achieve that my installer restarts automatically after rebooting, I tried to do it like this:
CreateShortCut "$SMSTARTUP\Startup Test.lnk" "$CMDLINE"

The CMDLINE variable seems to be correct.
CreateShortCut also seems to work well when not using it in conjunction with CMDLINE.
However, the link that is created looks like this:
"C:\"E:\Munka\t\StartupTest_Setup.exe" "

Tested with version 2.20 and 2.41, same result.
Sample installer code attached!

Please use this email address if more information is needed: kovacsp at sch.bme.hu

Thanks,
Peter

Discussion

  • Nobody/Anonymous

    Sample repro code

     
  • Amir Szekely

    Amir Szekely - 2008-12-19

    CreateShortcut has a different parameter for the executable and the parameters. Pass $EXEPATH as the executable and use ${GetParemeters} for the parameters.

     
  • Amir Szekely

    Amir Szekely - 2008-12-19
    • status: open --> closed-invalid
     

Log in to post a comment.

MongoDB Logo MongoDB