Archive: Changing icon from my files


Changing icon from my files
hey guys,

I want to associate my files with my programm.
I use this script: http://nsis.sourceforge.net/File_Association

But theres one problem for me: If I use this code:

${registerExtension} "c:\myplayer.exe" ".mkv" "MKV File"

all my files have the icon of my program. But i want another icon.

Just a example:
this is the program:
http://bilder.surf-liga.de/images/1443406011program.jpg

and this the file:
http://bilder.surf-liga.de/images/1893307062file.jpg
(this was ultra edit).

Is this possible with nsis?
And what line in the registerExtension.nsh says, what icon the file has?
WriteRegStr HKCR "$R0\DefaultIcon" "" "$R2,0"
?

whats up guys, no one an idea? :(


that function on the wiki does not support custom icons, you can use WriteRegStr after you have used that function and set DefaultIcon to whatever you want