Archive: problem with creating a complex shortcut


problem with creating a complex shortcut
I'm trying NSIS and I must say that it is very conveniant. very good job !
My only is to create a "complex" shortcut to start sun java virtual machine with my program.
What i'd like :
a shortcut to "c:\program files\myprog\jre\bin\javaw.exe" -cp "c:\program files\myprog" Myprog

for the moment all i get with CreateShortCut is :
a shortcut to "c:\program files\myprog\jre\bin\javaw.exe -cp c:\program files\myprog Myprog"
with CreateShortCut "$SMPROGRAMS\Myprog\myprog.lnk" "$INSTDIR\jre\bin\javaw.exe -cp $INSTDIR Myprog" "" "$INSTDIR\Icons\myprog.ico" 0

The quotes must be at the good places unless windows does not understand... If i put the quotes anywhere else i get an error when creating the script...

:( Can anyone help ?
Thanks a lot
I know I should not try to insert java in windows :D


i found the answer , sorry for the post...
CreateShortCut "$SMPROGRAMS\Myprog\myprog.lnk" "$INSTDIR\jre\bin\javaw.exe" '-cp "$INSTDIR" Myprog' "$INSTDIR\Icons\myprog.ico" 0

NSIS is really powerful !