Creating shortcuts to directories.
I want to create a shortcut to a folder.
If I specify a folder as the target for CreateShortcut, e.g.:
CreateShortcut "Shortcut.lnk" "$INSTDIR\somewhere"
It creates a shortcut but double clicking it asks me what program I want to open "somewhere" with.
If I edit the shortcut it creates and append a "\" to the directory name, it works, however, if I try to do that with CreateShortcut, e.g.:
CreateShortcut "Shortcut.lnk" "$INSTDIR\somewhere\"
NSIS removes the trailing "\" and it still has the same problem.
How do I create a shortcut to a folder?
Thanks.
Edit: NSIS 2.42 on Windows XP SP3.