Archive: shortcut command lines with " (inverted commas)


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


documentation:

CreateShortCut link.lnk target.file [parameters [icon.file [icon_index_number [start_options [keyboard_shortcut [description]]]]]]
so use this:
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:
' '
" "
` `

for this topic, see also chapter 4.1: script file format, subchapter "strings", where you may find some examples on this topic.

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

much appreciated!

thegonzo