Solved No icon for XML files

hexaae

New member
Member
Local time
6:49 AM
Messages
53
For unknown reasons (maybe install/uninstall of some programs) my XML default icon associated to "XML Editor" is now the generic white icon, though doublickicking on it is ok (it opens IE9)... :(
I've tried ANYTHING:
- my registry keys for XML and xmlfile (in HKLM, HKCU, Classes_Root) are okay, already compared to a working machine. (I've also tried http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html unsuccessfully).
- trying to restore the default application from "Default Program" panel doesn't solve the issue.
- cleaning icon-cache was useless (http://www.sevenforums.com/tutorials/49819-icon-cache-rebuild.html)
- SFC /scannow reports no issues
- uninstalled and reinstalled IE9 final didn't change
- repairing Office 2003 installation didn't help

What do you suggest?
Please, help me.... these are those little Windows things that can drive someone crazy....

I've noticed 2 wierd things too: the favicon for XML documents in IE9 x86 is correct, with IE9 x64 it's not and shows the same generic icon I see from explorer (!?).
It looks like a x64 vs x86 issue (explorer is a x64 task, but IE9 x86 shows the correct icon...).
When I change program association for XML files to (e.g.) Word or Worpad or IE9, a generic "ansi txt" icon is used as I expected, but if I switch back to default "XML Editor" it still shows the blank one...
I don't use CCleaner and similar dangerous programs that can corrupt the registry.
 

Attachments

  • Immagine.png
    Immagine.png
    163.7 KB · Views: 53
Last edited:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
MSI GX660-262it
OS
Windows 7 Home Premium x64 SP1
CPU
Intel Core i7 840QM
Memory
8GB DDR3 1333MHz
Graphics Card(s)
ATI Mobility HD 7970M 2GB DDR5
Screen Resolution
1920x1080
Hard Drives
Intel SSDSA2CT040G3
Hybrid ST750LX0ST750LX003
Antivirus
360 Internet Security
Browser
IE10

My Computer

Computer Manufacturer/Model Number
Hopalong/ Godzilla
OS
Windows7 Pro 64bit SP-1; Windows XP Pro 32bit
CPU
Intel Core i7-870 Lynnfield 2.93GHz LGA 1156 95W Quad-Core
Motherboard
ASUS P7P55D-E PRO
Memory
8GB@1400MHz Crucial Ballistix DDR3-1600 4x2GB
Graphics Card(s)
ASUS ENGTX460 DirectCU/2DI/1GD5 1GB 256-bit GDDR5
Sound Card
VIA Onboard
Monitor(s) Displays
Asus VS248H-P 24"; Samsung SyncMaster 941BW 19"ws
Screen Resolution
1920x1080; 1440x900
Hard Drives
Samsung 830 120GB SSD
Intel 320 120GB SSD
Western Digital Caviar Black WD7501AALS 750GB 7200 RPM SATA 3.0Gb/s
Western Digital Caviar Black WD6401AALS 640GB 7200 RPM SATA 3.0Gb/s
PSU
COOLER MASTER Silent Pro RS850-AMBAJ3-US 850W Modular
Case
COOLER MASTER HAF 932 RC-932-KKN5-GP Black
Cooling
Scythe "Mugen-2 Rev.B" (2 ScytheKaze-Jyuni PWM fans)
Keyboard
Logitech K-320
Mouse
Kensington
Antivirus
Avast Inernet Suite
Browser
IE 9 ; Chrome
Thank you but no, this doesn't solve my problem.
I can't understand why Explorer fails to associate the correct icon, like x86 programs do...

EDIT: I can confirm that all x86 programs do show the correct icon for XML files. Only x64 apps (just like explorer itself) show the generic empty one...
 
Last edited:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
MSI GX660-262it
OS
Windows 7 Home Premium x64 SP1
CPU
Intel Core i7 840QM
Memory
8GB DDR3 1333MHz
Graphics Card(s)
ATI Mobility HD 7970M 2GB DDR5
Screen Resolution
1920x1080
Hard Drives
Intel SSDSA2CT040G3
Hybrid ST750LX0ST750LX003
Antivirus
360 Internet Security
Browser
IE10
SOLVED
^^^^^

The bug is caused by Office 2003 (and 2007 I suppose) Installation that overwrites the registry to use a 32bit only IconHandler for XML, HTML, MHT etc. files! :devil:

HOW TO FIX

You need this free tool (or similar to edit filetypes): Default Programs Editor and system default tool RegEdit.

WHAT TO DO

1. Open RegEdit (from Start enter "regedit" and run the found program) and go find Computer\HKEY_CLASSES_ROOT\xmlfile registry key
2. Modify the subkey 'DefaultIcon' from (Default), REG_SZ="%1" to ...=%SystemRoot%\System32\msxml3.dll,0
3. Delete the subkey Computer\HKEY_CLASSES_ROOT\xmlfile\shellex\IconHandler and then close RegEdit.
4. Run 'Default Programs Editor' you've just downloaded as administrator.
5. Go to 'File Type Settings', 'Icon' and search "xml" extension (if it fails 1st time, search again and it will re-build the list). You should find "Document XML" listing .rels, .xml (or just .xml). Select it and press button 'Next'.
6. Press button 'Browse...' and insert as the resource dll %SystemRoot%\System32\msxml3.dll. Double-click on the first image in the DLL and the Browse window will auto-close.
7. Press the button 'Save Icon' in Default Programs Editor, still open, window.
You're done!

You should see again the usual little-world icon for XML files! Enjoy! :D

N.B.:
It may happen the same for HTML, MHT etc. files, forced to use a 32bit IconHandler by Office 2003/2007! You have to do the same (i.e. delete IconHandler subkey) for those Computer\HKEY_CLASSES_ROOT\mhtmlfile (or \htmlfile etc.)! Should be enough, no need for Default Program Editor. You may need to reset also IE as the Default Program to make HTML, MHT etc. icons back.
 
Last edited:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
MSI GX660-262it
OS
Windows 7 Home Premium x64 SP1
CPU
Intel Core i7 840QM
Memory
8GB DDR3 1333MHz
Graphics Card(s)
ATI Mobility HD 7970M 2GB DDR5
Screen Resolution
1920x1080
Hard Drives
Intel SSDSA2CT040G3
Hybrid ST750LX0ST750LX003
Antivirus
360 Internet Security
Browser
IE10
thx
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
sony
OS
Windows 7 Ultimate
I am having the same problem... Except the open with "xml editor" is no longer there .... how can i restore the xml editor so i can change the icon :(
 

My Computer

OS
Windows 7 Home Premium x64
CPU
Intel Core i7 3770
Thank you Hexaae for easy to follow instructions; it worked perfectly.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Home Premium and Windows 7 Ultimate
Thanks a lot Hexaae. I manage to solve de same problem in Windows 10 Pro with Office 2013.
 

My Computer

OS
windows-linux
Back
Top