Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 28th March 2002, 03:40   #1
vrtata
Junior Member
 
Join Date: Mar 2002
Location: India
Posts: 7
Send a message via Yahoo to vrtata
Question 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
vrtata is offline   Reply With Quote
Old 28th March 2002, 04:41   #2
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,168
Send a message via ICQ to Yathosho
mmmh, i'm pretty new to strings, but this could work

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



good luck
Yathosho is offline   Reply With Quote
Old 28th March 2002, 06:58   #3
vrtata
Junior Member
 
Join Date: Mar 2002
Location: India
Posts: 7
Send a message via Yahoo to vrtata
Angry 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.
vrtata is offline   Reply With Quote
Old 28th March 2002, 07:33   #4
Smile2Me
Guest
 
Posts: n/a
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.
  Reply With Quote
Old 28th March 2002, 08:26   #5
vrtata
Junior Member
 
Join Date: Mar 2002
Location: India
Posts: 7
Send a message via Yahoo to vrtata
Thanx a lot. The solution works
vrtata is offline   Reply With Quote
Old 28th March 2002, 12:55   #6
Smile2Me
Guest
 
Posts: n/a
Thumbs up

Great!!!

-Hendri.
  Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump