Menu

#185 CreateShortcut gif

2.0 Beta Series
closed-invalid
Scripting (211)
5
2003-11-06
2003-11-06
Anonymous
No

I am using MakeNSIS v2.0b3.

Using the basic script for creating a shortcut:

---------------snip-------------------------
CreateShortCut "$SMPROGRAMS\${MUI_STARTMENUPAGE
_VARIABLE}\Fun.lnk" "$INSTDIR\jars\Fun.jar" \
parameters "$INSTDIR\logoHorizSma.ico" 0
SW_SHOWNORMAL "" "Fun Application"
---------------------------------------------

This script compiles fine and creates the shortcut with
the specified icon however the shortcut target ends up
like this:

"C:\Program Files\FUN\jars\Fun.jar" parameters

This means that when reading the applications command-
line parameters you get "parameters" as the first ermm..
parameter.

Discussion

  • Amir Szekely

    Amir Szekely - 2003-11-06
    • milestone: --> 2.0 Beta Series
    • status: open --> closed-invalid
     
  • Amir Szekely

    Amir Szekely - 2003-11-06

    Logged In: YES
    user_id=584402

    And the problem there is? :)

    Parameters is supposed to be the parameters list... If you
    don't want any, use "".

     
  • Amir Szekely

    Amir Szekely - 2003-11-06
    • assigned_to: nobody --> kichik
     
  • Nobody/Anonymous

    Logged In: NO

    I do need parameters to specify the icon I want for the
    shortcut. If I put "" where parameters is then the icon is not
    set. If I put "" before the parameters tag then, of course , I
    get a compile error. If I leave the parameters tag in , as is
    necessary to set the icon, then the word "parameters"
    appears as part of the shortcut target. Thus my application
    would have to ignore "parameters" as the first command line
    attribute supplied to it.

     

Log in to post a comment.

MongoDB Logo MongoDB