以前用的是win7 32位旗舰版
http:-//topic.csdn.-net/u/20110118/00/045d80b1-f0de-4c99-b347-d93d13eaaaf6.html
这贴中Forever_Young也给出了解决的方法
这次重装win7 64位企业版
这个方法居然不行了
再次求一个方法修改html图标
opera接管了html的关联,所以就要修改opera的参数
Assembly code
[Version]
signature="$Windows NT$"
[DefaultInstall]
AddReg = ChgHtmlIcon.AddReg
DelReg = ChgHtmlIcon.DelReg
[ChgHtmlIcon.AddReg]
HKLM,"SOFTWARE\Classes\htmlfile\DefaultIcon",,0,%IconPath%
HKLM,"SOFTWARE\Classes\CLSID\{42042206-2D85-11D3-8CFF-005004838597}\Old Icon\htmlfile\DefaultIcon",,0,%IconPath%
HKCU,"Software\Classes\Opera.HTML\DefaultIcon",,0,%IconPath%
HKLM,"Software\Classes\Opera.HTML\DefaultIcon",,0,%IconPath%
[ChgHtmlIcon.DelReg]
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html"
[Strings]
IconPath = "%SYSTEMROOT%\explorer.exe,14"