This is what I'm using:
[HKEY_CLASSES_ROOT\.nfo]
@="Infofile"
"PerceivedType"="text"
"Content Type"="text/plain"
[HKEY_CLASSES_ROOT\.nfo\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\Infofile]
@="Infofile"
"EditFlags"=dword:00010000
"BrowserFlags"=dword:00000008
[HKEY_CLASSES_ROOT\Infofile\DefaultIcon]
@="%systemroot%\\system32\\shell32.dll,221"
The last part is what controls the icon.
In your case it should be:
[HKEY_CLASSES_ROOT\Infofile\DefaultIcon]
@="%systemroot%\\notepad.exe,1"
This can also be done for other filetypes, just make sure that the filename in [HKEY_CLASSES_ROOT\
Filename] is the same as the one under [HKEY_CLASSES_ROOT\.
extension] (the @="
filename"-part). This is because of the relation between the extension and the filetype.
Take a look in the registry under HKEY_CLASSES_ROOT to get the idea of how it works with other known filetypes. For example
.mpeg and
mpegfile.