Clo wrote:- You can assign any icon to any file type in Windows >> Configuration Panel >> Tools Menu >> Folders options >> File Types >> Advanced >> Change icon (or so, it's in French here…)
The most Win icons are contained in <windows\system32\Shell32.dll> and also in some EXEs of the original programmes used by Windows.
I know, check my first post. I was saying that all the image formats I associated with XnView don't show up anymore in that list. I figured out why, keep reading.
Clo wrote:I was going to just replace the icons in XnView.exe's resources, but it's protected. What protection is it using?

Do you think really that Pierre should give you means to hack the programme ?
It's not hacking, it's just replacing its resources. The program is free for non-commercial use anyway, why is the protection needed?
helmut wrote:tb238 wrote:...
So I went to the registry, HKEY_CLASSES_ROOT\.png to name one key, but nothing shows up in the default value. What weird method is XnView using for file associations?

A minor addition to Clo's good answer: XnView does nothing weird. There is one key which is points to an alias that's all.
If you want to change the icon for PNG for example, you can change it as described by Clo or reg-editing "HKEY_CLASSES_ROOT\XnView.png\DefaultIcon" (HKEY_CLASSES_ROOT\.png points to .\XnView.png).
OK, thanks. Stupid me for forgetting about HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png.
And sorry, by "weird" I didn't mean XnView was doing something suspicious, I meant there was something wrong.
This is the problem:
HKCR\.png does not point to HKCR\.XnView.png at all, but HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.png does. "XnView.png" should be added to HKCR\.png as the default value, so that PNG shows up again in Explorer's file type list. Bug?
Well, thanks for responding, XnView looks really great
