Skip to content
⌘ NSIS Forum Archive

Changing icon from my files

3 posts

simptz#

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:


and this the file:

(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"
?
Anders#
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