Archive: ShortCut Problem


ShortCut Problem
I am trying to create a desktop shortcut using the following command

CreateShortCut "$DESKTOP\Reports" "$INSTDIR\WINTAD.EXE /C 20214013.cfg 202.140.138.22"

The problem that I am facing is that the shortcut get created just fine but on viewing the properties of the shortcut, the target file is enclosed in double quotes and hence the shortcut does not work properly.

The shortcut I need to create a shortcut that contains lot of parameters. Can somebody help me in achieving this??

Thanx


mmmh, i'm pretty new to strings, but this could work

StrCpy $1 "$INSTDIR\WINTAD.EXE /C 20214013.cfg 202.140.138.22"
CreateShortCut "$DESKTOP\Reports" $1


good luck :D

Short Cut Problem with lot of parameters
Thanx but the solution does'nt work. The shortcut gets created but the target file name along with the parameters are all enclosed in double quotes preventing it to work properly.


The parameters should go into a separate string, not together with the file that should be opened.

Eg.:
CreateShortCut "$DESKTOP\prob.lnk" '"$WINDIR\notepad.exe"' '"$WINDIR\win.ini"'

As described in the NSIS Docs.

-Hendri.


Thanx a lot. The solution works


Great!!!

-Hendri.