Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   changing icon picture on desktop (http://forums.winamp.com/showthread.php?t=206552)

manyaka 1st February 2005 11:01

changing icon picture on desktop
 
Hi guys.I just want know how I can put my own icon on the desktop.

Please help.
Thanks so much

glory_man 1st February 2005 11:15

Maybe CreateShortCut function help you. I find this example in NSIS documentation:
code:

CreateShortCut "$SMPROGRAMS\My Company\My Program.lnk" "$INSTDIR\My Program.exe" \
"some command line parameters" "$INSTDIR\My Program.exe" 2 SW_SHOWNORMAL \
ALT|CTRL|SHIFT|F5 "a description"


manyaka 1st February 2005 11:50

how
 
could you please send me an example dood.That looks realy confusing.Lets say my icons name is Doorbell.bmp

Thanx dood

glory_man 1st February 2005 13:32

For the best use the icons (.ico) rather then bitmap (.bmp).
For your bmp this will look as:
code:

CreateShortCut "$DESKTOP\My Program.lnk" "$INSTDIR\My Program.exe" "" "c:\Doorbell.bmp"


If use dll with large number icon.
code:

CreateShortCut "$DESKTOP\My Program.lnk" "$INSTDIR\My Program.exe" "" "c:\Doorbell.dll" ${ic_ind}


where ic_ind - a number of the icon in dll

Probably you quicker has found their own answers if used "Search" with filter, for example icon, or shortcut, or CreateShortCut. There has found and examples.

glory_man 1st February 2005 13:32

Deleted. Double post. :confused:


All times are GMT. The time now is 05:18.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.