Archive: Shortcut problem


Shortcut problem
i create a shortcut using following command:

CreateShortCut
"$DESKTOP\TEMPPO 2.1.lnk"
'"$INSTDIR\jre\bin\javaw.exe"'
'-classpath temppo.jar;lib.jar -Dsun.java2d.noddraw temppo.Temppo'
"$INSTDIR\temppo.ico"
0


The Problem:
on some NT installations the shortcut is created correct and on some it is created with C:\ in front of the "real" shortcut.

any ideas?

regards,
Clemens


Please read the docs...
The parameters should come as a seperate paremeter to CreateShortCut.


i read the docs and i use separate parameter for the shortcut parameter!


So why do you have triple quotes before the java path? It seemed like you quoted both of them togther.
Try to do it with just one quote/double quote.


The windows shortcut is created from the second and third parameter of CreateShortCut. If $INSTDIR contains a space (e.g. c:\program files) and it's not quoted, a queer shortcut will be created (c:\"c:\...."). So I put quotes around fragments, i expect to contain spaces. This works on some machines and on others not !?


You don't need to put quotes around $INSTDIR (even if it contains spaces).