Jump to content

Help please no icons


urie

Recommended Posts

Hi there just did new unattended install just noticed that any html and htm files i have on my computer have no icons i can double click the files and they open up as usuall with firefox,

i can change filetype ang get them to open up with iexplore also but i cant delete filetype the remove button is greayed out in properties section. i even downloaded html_association_fix.reg see code belo but still no joy.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.htm]
"PerceivedType"="text"
@="htmlfile"
"Content Type"="text/html"

[HKEY_CLASSES_ROOT\.htm\OpenWithList]

[HKEY_CLASSES_ROOT\.htm\OpenWithList\FRONTPG.EXE]

[HKEY_CLASSES_ROOT\.htm\OpenWithList\notepad.exe]

[HKEY_CLASSES_ROOT\.htm\OpenWithList\WINWORD.EXE]

[HKEY_CLASSES_ROOT\.htm\PersistentHandler]
@="{eec97550-47a9-11cf-b952-00aa0051fe20}"

[HKEY_CLASSES_ROOT\.html]
"PerceivedType"="text"
@="htmlfile"
"Content Type"="text/html"

[HKEY_CLASSES_ROOT\.html\PersistentHandler]
@="{eec97550-47a9-11cf-b952-00aa0051fe20}"

[HKEY_CLASSES_ROOT\htmlfile]
@="HTML Document"

[HKEY_CLASSES_ROOT\htmlfile\BrowseInPlace]
@=""

[HKEY_CLASSES_ROOT\htmlfile\CLSID]
@="{25336920-03F9-11cf-8FD0-00AA00686F13}"

[HKEY_CLASSES_ROOT\htmlfile\DefaultIcon]
@="\"%1\""

[HKEY_CLASSES_ROOT\htmlfile\ScriptHostEncode]
@="{0CF774D0-F077-11D1-B1BC-00C04F86C324}"

[HKEY_CLASSES_ROOT\htmlfile\shell]
@="opennew"

[HKEY_CLASSES_ROOT\htmlfile\shell\Edit]
@="&Edit"

[HKEY_CLASSES_ROOT\htmlfile\shell\Edit\command]
@="\"C:\\Program Files\\Microsoft Office\\Office10\\msohtmed.exe\" %1"

[HKEY_CLASSES_ROOT\htmlfile\shell\open]
@="Open in S&ame Window"

[HKEY_CLASSES_ROOT\htmlfile\shell\open\command]

Link to comment
Share on other sites


[HKEY_CLASSES_ROOT\htmlfile\DefaultIcon]

@="\"%1\""

This doesn't look right. Should point to an entry in iexplore.exe instead of itself, as HTML files do not contain icons themselves.

--> iexplore.exe,-17 seems to be the right icon

Link to comment
Share on other sites

Found this vbs script that done the trick posted it in case any one else has this problem

'--------------------------------------------------------------
'Applies To : Microsoft Windows XP
'Author : Ramesh Srinivasan - Microsoft MVP [Windows XP]
'Created on : January 17, 2006
'Description : Fixes the icons for HTM/HTML/MHT/MHTML files
'Homepage : http://windowsxp.mvps.org
'More Info : http://windowsxp.mvps.org/htmicon.htm
'Prerequisite : Windows XP systems / Administrative privileges
'--------------------------------------------------------------

Set WshShell = CreateObject("WScript.Shell")
On Error resume Next
WshShell.RegWrite "HKCR\.htm\", "htmlfile", "REG_SZ"
WshShell.RegWrite "HKCR\.html\", "htmlfile", "REG_SZ"
WshShell.RegWrite "HKCR\.mht\", "mhtmlfile", "REG_SZ"
WshShell.RegWrite "HKCR\.mhtml\", "mhtmlfile", "REG_SZ"
WshShell.RegWrite "HKCR\htmlfile\DefaultIcon\", "%Programfiles%\Internet Explorer\IEXPLORE.EXE,1", "REG_EXPAND_SZ"
WshShell.RegWrite "HKCR\mhtmlfile\DefaultIcon\", "%Programfiles%\Internet Explorer\IEXPLORE.EXE,22", "REG_EXPAND_SZ"
WshShell.Regdelete "HKCR\htmlfile\ShellEx\IconHandler\"
WshShell.Regdelete "HKCR\mhtmlfile\ShellEx\IconHandler\"
WshShell.Regdelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.HTM\Application"
WshShell.Regdelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.HTM\ProgID"
WshShell.Regdelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.HTML\Application"
WshShell.Regdelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.HTML\ProgID"
WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE\", "%Programfiles%\Internet Explorer\IEXPLORE.EXE", "REG_EXPAND_SZ"
Wshshell.RUN ("regsvr32.exe mshtml.dll -i -s")
Wshshell.RUN ("regsvr32.exe shdocvw.dll -i -s")
MsgUser = Msgbox ("Fixed the registry settings. Restart Windows for the changes to take effect", 4160, "HTML icon fix for Windows XP")
Set WshShell = Nothing

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...