Skip to content
⌘ NSIS Forum Archive

Shortcut problem

6 posts

FuchsC#

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
kichik#
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.
FuchsC#
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 !?