由于Windows7的原因造成无法在桌面创建一个IE图标,一般的创建方法有两种:1、直接创建IEXPLORE.EXE程序的快捷方式;2、仿制一个IE类标识。第一种很多人认为有个快捷方式箭头在上面不美观,更不习惯的是鼠标右键属性没有Internet选项界面出来,第二种也有问题,就是鼠标右键菜单属性不在菜单最底部,当然通过加参数是可以强制放置在底部的。
下面就是我写的一个INF文件来创建一个桌面IE图标,有人会问为啥要用INF方式来写,这里说几点好处:1、在INF文件上鼠标右键直接点“安装”即可完成创建,最好的是可以不需要你刷新桌面图标就可以直接出来;2、INF里面可以使用系统路径的环境变量,这个是非常非常重要的,举个例子,你导出注册表的时候系统装在C盘,如果拿去导入的人系统如果装在别的盘就拿无法正确使用,这种情况是比较常见的,使用了系统路径环境变量就不会有这种情况发生了,也显得专业些,呵呵。
下面红色字体就是INF文件的内容,复制此段代码,粘贴到记事本里面,保存为任意文件名,后缀名为INF的文件即可,比如:InsDeskIE.inf 。
谢谢一位朋友指出删除图标后再次安装图标不出现的小BUG,已经修正了。
[Version] signature="$Windows NT$" DriverVer=10/01/2002,5.2.3790.1830 [DefaultInstall] AddReg = DeskIEIcon.AddReg [DeskIEIcon.AddReg] HKCR,"%IECLSID%","InfoTip",0x00000000,"@%11%\ieframe.dll,-881" HKCR,"%IECLSID%",,0x00000000,"Internet Explrer" HKCR,"%IECLSID%\DefaultIcon",,0x00000000,"%11%\ieframe.dll,-190" HKCR,"%IECLSID%\InProcServer32",,0x00000000,"%11%\ieframe.dll" HKCR,"%IECLSID%\InProcServer32","ThreadingModel",0x00000000,"Apartment" HKCR,"%IECLSID%\shell",,0x00000000,"OpenHomePage" HKCR,"%IECLSID%\shell\NoAddOns",,0x00000000,"在没有加载项的情况下启动" HKCR,"%IECLSID%\shell\NoAddOns\Command",,0x00000000,""""%16422%\Internet Explorer\iexplore.exe""" -extoff" HKCR,"%IECLSID%\shell\OpenHomePage",,0x00000000,"打开主页(&H)" HKCR,"%IECLSID%\shell\OpenHomePage\Command",,0x00000000,"""%16422%\Internet Explorer\iexplore.exe""" HKCR,"%IECLSID%\shell\Properties",,0x00000000,"属性(&R)" HKCR,"%IECLSID%\shell\Properties","Position",0x00000000,"bottom" HKCR,"%IECLSID%\shell\Properties\command",,0x00000000,""""%11%\control.exe""" """%11%\inetcpl.cpl"""" HKCR,"%IECLSID%\Shellex\ContextMenuHandlers\ieframe",,0x00000000,"{871C5380-42A0-1069-A2EA-08002B30309D}" HKCR,"%IECLSID%\Shellex\MayChangeDefaultMenu",,0x00000000 HKCR,"%IECLSID%\ShellFolder",,0x00000000,"%11%\ieframe.dll,-190" HKCR,"%IECLSID%\ShellFolder","HideAsDeletePerUser",0x00000000 HKCR,"%IECLSID%\ShellFolder","HideFolderVerbs",0x00000000 HKCR,"%IECLSID%\ShellFolder","WantsParseDisplayName",0x00000000 HKCR,"%IECLSID%\ShellFolder","HideOnDesktopPerUser",0x00000000 HKCR,"%IECLSID%\ShellFolder","Attributes",0x00010001,0x00000024 HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{871C5380-42A0-1069-A2EA-08002B30308D}",0x00010001,0 HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{871C5380-42A0-1069-A2EA-08002B30308D}",0x00010001,0 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{871C5380-42A0-1069-A2EA-08002B30308D}",,0x00000000 [Strings] IECLSID = "CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}"
好了!当你选择鼠标右键菜单“安装”后一个相似度极高的IE图标就出现在了Windows7的桌面上了,而且属性项是总在最下面的哦,很符合那些喜欢在桌面打开IE的人的习惯了,呵呵。
另外附一个卸掉的INF文件内容,这个就不多说了,还是保存为一个INF文件,鼠标右键选“安装”就可以删掉了。
;在Windows7下桌面创建仿真度99.99%的IE图标 [卸载] - 佛爱我羊 [Version] signature="$Windows NT$" DriverVer=10/01/2002,5.2.3790.1830 [DefaultInstall] DelReg = DeskIEIcon.DelReg [DeskIEIcon.DelReg] HKCR,"%IECLSID%" HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{871C5380-42A0-1069-A2EA-08002B30308D}" [Strings] IECLSID = "CLSID\{871C5380-42A0-1069-A2EA-08002B30308D}"
转:http://jsyk888.blog.163.com/blog/static/4895746820107172644663/