tux_85
10th July 2008 12:55 UTC
Desktop Shortcut with icon
Hello,
I want to create a shortcut with a personal icon on the desktop. I create the shortcut with these code:
CreateShortCut "$DESKTOP\name.lnk" "$INSTDIR\path"
But how can I decide the icon of the shortcut???
Thanks for helping!
Red Wine
10th July 2008 13:08 UTC
Nobody wants to read the docs nowadays?
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.3.4
tux_85
10th July 2008 13:21 UTC
THANKS!!! That is what I searched.
pospec
10th July 2008 13:45 UTC
Originally posted by Red Wine
Nobody wants to read the docs nowadays?
IMHO doesn't :( Forum is full of repeating posts. Maybe some cleanup would be helpful...
tux_85
10th July 2008 14:58 UTC
I read the manuel but it does not work. I think I made any mistakes with the parameters.
Can you give me an expamle who I must use the parameters to create a shortcut with an icon/symbol???
LoRd_MuldeR
10th July 2008 16:20 UTC
This was copied from the docs:
CreateShortCut "$SMPROGRAMS\My Company\My Program.lnk" "$INSTDIR\My Program.exe" "some command line parameters" "$INSTDIR\My Program.exe" 2
The 4th argument is the icon file, the 5th argument is the index of the icon.
If you don't need the 3rd argument, use a "", but you cannot leave it out!
Yes, it seems people neither read NSIS.chm nor use the "Examples" folder :cry: