Wrong Icon for MS-DOS Application in XP

  • Thread starter Thread starter Kel
  • Start date Start date
K

Kel

..com files show correct icon....they are using
C:\WINDOWS\System32\shell32.dll,2

..exe files show incorrect icon....they are using
C:\WINDOWS\System32\shell32.dll,0

How do I restore .exe files to use C:\WINDOWS\System32
\shell32.dll,2

Shortcuts for both show correct icon....they are using
C:\WINDOWS\system32\pifmgr.dll,0

Thanks for any help
 
I'm not that familiar with the registry, but this is what
is showing for exefile

HKEY_CLASSES_ROOT\exefile\DefaultIcon
(Default) REG_SZ %1

this is what is showing for comfile

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\comfile\DefaultIcon
(Default) REG_SZ %SystemRoot%\System32
\shell32.dll,2


I try changing the %1 to %SystemRoot%\System32
\shell32.dll,2 in exefile and all my shortcuts changed to
the same shell32.dll,2 icon so I restored my registry and
I am back at square one with the MS-DOS exe icon being
wrong.
 
Okay I found...
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersi
on\Explorer\Shell Icons

Its showing:
(Default) REG_SZ (value not set)
2 REG_SZ C:\WINDOWS\System32\shell32.dll,2
29 REG_SZ C:\WINDOWS\System32\TweakUI.exe,
2

I am unsure what to change here.
 
So am I. If you delete it it assumes what is there. So as standard there are no entries under this key. Tweakui has added 29 (custom shortcut arrow). Some other tweak program has set 2 (exe files without inbuilt icons and com file which can't have icons) to = 2. But it defaults to 2 if there is no entry. (0 defaults to 0, 1 defaults to 1, 2 to 2, n to n, 46 to 46 same as the order in shell32).

But delete it anyway as it's unnecessary.

It maybe there is no problem (Icon cache is full). Try this
To refresh the icons in the system change the size of icons in Start - Control Panel - Display - Appearance - Advanced, click ok - apply then change the size back.

More on shellicons here

www.mvps.org/serenitymacros/icon.html
 
Back
Top