Yovav
12th May 2003 02:48 UTC
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
12th May 2003 04:14 UTC
I didn't test, but this might help you:
CreateDirectory "$SMPROGRAMS\Example"
CreateShortCut "$SMPROGRAMS\Example\doclnk.lnk" "$INSTDIR\doc.doc" "" "$INSTDIR\myico.ico" 0
Yovav
12th May 2003 04:50 UTC
WoW
it worked 2 !
U really made my day :-)
Well, did U write some of this hot piece of code ?
Joel
12th May 2003 05:06 UTC
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