vrtata
28th March 2002 04:40 UTC
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
Yathosho
28th March 2002 05:41 UTC
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
vrtata
28th March 2002 07:58 UTC
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.
Smile2Me
28th March 2002 08:33 UTC
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.
vrtata
28th March 2002 09:26 UTC
Thanx a lot. The solution works
Smile2Me
28th March 2002 13:55 UTC
Great!!!
-Hendri.