Archive: How 2 show an icon to a non EXE file ?


How 2 show an icon to a non EXE file ?
Hi all.

is it possible to add a file (.doc) and show a customize icon for it ?

4 example:
I have app.exe app.doc on my install dir,
I made a shortcut to app.doc on the start menu -> programs,
(it gets the default .doc icon that is associated with .doc)

how can I give it the icon of the exe file ?
(maybe something like: app.exe,1)


I didn't test, but this might help you:


CreateDirectory "$SMPROGRAMS\Example"
CreateShortCut "$SMPROGRAMS\Example\doclnk.lnk" "$INSTDIR\doc.doc" "" "$INSTDIR\myico.ico" 0

WoW
it worked 2 !

U really made my day :-)

Well, did U write some of this hot piece of code ?


Re: WoW

Originally posted by Yovav
Well, did U write some of this hot piece of code ?
Actually it's from the "${NSISDIR}\Examples\example2.nsi"
I just config. to match your needs :D
Glad it worked.

! Saludos Totales ยก

:p