Archive: changing icon picture on desktop


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


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


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"

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

Thanx dood


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


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

If use dll with large number icon.

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.

Deleted. Double post. :confused: