Skip to content
⌘ NSIS Forum Archive

How 2 show an icon to a non EXE file ?

4 posts

Yovav#

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)
Joel#edited
I didn't test, but this might help you:

CreateDirectory "$SMPROGRAMS\Example"
CreateShortCut "$SMPROGRAMS\Example\doclnk.lnk" "$INSTDIR\doc.doc" "" "$INSTDIR\myico.ico" 0
Joel#
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 😁
Glad it worked.

! Saludos Totales ¡

😛