Announcement

Collapse
No announcement yet.

shortcut command lines with " (inverted commas)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • shortcut command lines with " (inverted commas)

    hi all

    new to nsis - absolutely loving it. one thing i cant seem to find out is this:

    a shorcut i need to make has to have these parameters:

    "path_to_exe" "path_to_doc" "/apps own command" "path_to_second_doc"

    the inverted commas need to be in place for the shortcut to work. ive tried placing a back/forward slash before the ", but to no avail. basically, i just need that darn inverted comma.

    in case you were wondering, im creating a simple installer for an Access db file. in the shortcut, i need access.exe called up, then the db file, then the access command line, then the workgroup security file.

    Thanks for the help!
    thegonzo

  • #2
    documentation:
    CreateShortCut link.lnk target.file [parameters [icon.file [icon_index_number [start_options [keyboard_shortcut [description]]]]]]
    so use this:
    code:
    CreateShortCut "MyShortCut.lnk" "path_to_exe" '"path_to_doc" "/apps own command" "path_to_second_doc"'
    if you want to use inverted commata, you can combine different types of them. nsis2 supports the following:
    code:
    ' '
    " "
    ` `

    for this topic, see also chapter 4.1: script file format, subchapter "strings", where you may find some examples on this topic.
    hand by [email protected]
    ----------
    WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility

    Comment


    • #3
      thanks so very much for the help! it works, and my job is done.

      much appreciated!

      thegonzo

      Comment

      Working...
      X