标签: 注册表

  • 免费给 Win10 加上右键菜单文件哈希校验功能

    免费给 Win10 加上右键菜单文件哈希校验功能

    如果你经常下载文件,比如 Windows 10 镜像、Ubuntu 等 Linux 系统或一些软件安装包,都能发现很多网站会标明该文件的 Hash (哈希) 校验信息,常见的有 MD5、SHA-1 的值。

    每个文件的哈希值是唯一且无法伪造的,因此下载文件后只要计算一下它的 MD5 或 SHA1 值,比对就能知道文件是否下载完整、有没被人修改过或“加料”了。而今天异次元就教你无需安装任何软件,添加一个“右键菜单”来快速计算文件哈希校验值,绝对轻量、免费、方便……

    以往为了方便地计算文件的 Hash 校验值,我们通常会安装第三方工具,比如 HashTab 或 fHash 等。但其实,在 Windows10 / 8 系统中,本身自带的 PowerShell 命令行就能算哈希,不过需要通过敲命令来使用,一般人都嫌麻烦不太愿意去学习。

    现在,我们可以通过方法将「计算文件哈希校验值」功能添加到 Windows 文件的“右键菜单”中,按右键就能一键调用命令行计算文件的 MD5、SHA1、SHA256、SHA384、SHA512、 MACTripleDES、RIPEMD160 等算法哈希值,而且还能一次计算全部,非常实用!

    「右键菜单文件 Hash 哈希校验工具」不仅使用上超级方便,而且它极其轻量 (系统自带命令,无需下载安装第三方软件)、完全免费、绿色、安全可靠无公害、无残留,因此对于经常有文件验证需求的朋友来说,这是一个不可多得的辅助工具。


    下面异次元就给大家展示一下,怎样为 Windows 的文件右键菜单上添加或删除这个「右键哈希校验值功能」吧。注意这个 Hash 右键菜单仅支持 Win10 和 Win8,不支持 Win7 哦。

    添加 Hash 文件哈希右键菜单的方法
    一是下载懒人一键安装/卸载包:[右键菜单注册表下载地址:https://dl.iplaysoft.com/files/5457.html]
    我们将通过导入注册表的形式来添加 Windows 的右键菜单,不想自己动手的朋友可以直接在文章后面下载异次元制作好的 .reg 文件 (包含添加菜单和删除菜单两个文件),双击导入即可使用,没有任何复杂操作,超级简单。

    当然,你也完全可以自己动手,复制下面的注册表代码,打开记事本,将代码内容复制粘贴进去,并另存为 .reg 后缀名,并双击导入即可。

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\*\shell\hash]
    “MUIVerb”=”校验文件 Hash”
    “SubCommands”=””
    “Icon”=”PowerShell.exe”

    ; SHA1
    [HKEY_CLASSES_ROOT\*\shell\hash\shell\01menu]
    “MUIVerb”=”SHA1″

    [HKEY_CLASSES_ROOT\*\shell\hash\shell\01menu\command]
    @=”powershell -noexit get-filehash -literalpath ‘%1’ -algorithm SHA1 | format-list”

    ; SHA256
    [HKEY_CLASSES_ROOT\*\shell\hash\shell\02menu]
    “MUIVerb”=”SHA256″

    [HKEY_CLASSES_ROOT\*\shell\hash\shell\02menu\command]
    @=”powershell -noexit get-filehash -literalpath ‘%1’ -algorithm SHA256 | format-list”

    ; SHA384
    [HKEY_CLASSES_ROOT\*\shell\hash\shell\03menu]
    “MUIVerb”=”SHA384″

    [HKEY_CLASSES_ROOT\*\shell\hash\shell\03menu\command]
    @=”powershell -noexit get-filehash -literalpath ‘%1’ -algorithm SHA384 | format-list”

    ; SHA512
    [HKEY_CLASSES_ROOT\*\shell\hash\shell\04menu]
    “MUIVerb”=”SHA512″

    [HKEY_CLASSES_ROOT\*\shell\hash\shell\04menu\command]
    @=”powershell -noexit get-filehash -literalpath ‘%1’ -algorithm SHA512 | format-list”

    ; MACTripleDES
    [HKEY_CLASSES_ROOT\*\shell\hash\shell\05menu]
    “MUIVerb”=”MACTripleDES”

    [HKEY_CLASSES_ROOT\*\shell\hash\shell\05menu\command]
    @=”powershell -noexit get-filehash -literalpath ‘%1’ -algorithm MACTripleDES | format-list”

    ; MD5
    [HKEY_CLASSES_ROOT\*\shell\hash\shell\06menu]
    “MUIVerb”=”MD5″

    [HKEY_CLASSES_ROOT\*\shell\hash\shell\06menu\command]
    @=”powershell -noexit get-filehash -literalpath ‘%1’ -algorithm MD5 | format-list”

    ; RIPEMD160
    [HKEY_CLASSES_ROOT\*\shell\hash\shell\07menu]
    “MUIVerb”=”RIPEMD160″

    [HKEY_CLASSES_ROOT\*\shell\hash\shell\07menu\command]
    @=”powershell -noexit get-filehash -literalpath ‘%1’ -algorithm RIPEMD160 | format-list”

    ; Allget-filehash -literalpath ‘%1’ -algorithm RIPEMD160 | format-list
    [HKEY_CLASSES_ROOT\*\shell\hash\shell\08menu]
    “CommandFlags”=dword:00000020
    “MUIVerb”=”校验全部”

    [HKEY_CLASSES_ROOT\*\shell\hash\shell\08menu\command]
    @=”powershell -noexit get-filehash -literalpath ‘%1’ -algorithm SHA1 | format-list;get-filehash -literalpath ‘%1’ -algorithm SHA256 | format-list;get-filehash -literalpath ‘%1’ -algorithm SHA384 | format-list;get-filehash -literalpath ‘%1’ -algorithm SHA512 | format-list;get-filehash -literalpath ‘%1’ -algorithm MACTripleDES | format-list;get-filehash -literalpath ‘%1’ -algorithm MD5 | format-list;get-filehash -literalpath ‘%1’ -algorithm RIPEMD160 | format-list”

    注意事项 (中文乱码问题):
    不过要注意的是,自己复制代码保存时,编码必须选择“UTF-16 LE”格式,否则右键菜单的中文会乱码。

    卸载删除哈希右键菜单
    当你想要删除这个文件 Hash 右键菜单的功能时,你只需双击导入「卸载.reg」即可,代码内容如下,同样你也可以自己保存成 .reg 再双击导入。

    Windows Registry Editor Version 5.00

    [-HKEY_CLASSES_ROOT\*\shell\hash]

    写在后面:
    这个右键计算文件校验值的 Hash 哈希功能仅支持 Win 10 和 8,它优点多多,简单、免费,无需下载第三方软件、无需学习命令行,右键菜单一键计算的使用方式也非常的方便,妥妥的装机必备哦。

    导入注册表文件后立即生效,当不需要的时候卸载菜单也没有任何残留,非常干净。有了这个右键菜单增强功能,日后下载文件再也不怕被篡改了,什么 Linux 镜像、Windows 系统,右键算一下校验值就能知道到底是不是真正的原版了。

  • Windows 10 LTSB 还原默认照片查看器

    Windows 10 LTSB 还原默认照片查看器

    LTSB 版本的windows ,如果用在ATM上,着实没有使用照片查看器的必要。
    然而,却可以查看tif。
    默认的查看jpg,使用的是画图。

    网友说,不知道微软是怎么想的?
    然后,从google上爬拉到了找回照片查看功能的方法。

    地址: http://www.tenforums.com/tutorials/14312-windows-photo-viewer-restore-windows-10-a.html

    国内it之家上有同样问题的解决,是将其他格式的文件在注册表中改成tiff格式,实现查看。

    这个国外论坛上提供的方法,看起来是一种层次稍深一些的系统功能还原。很多的16进制数据。而且可以在metro版的设置界面中选择默认图片查看器。觉得非常遛。推荐大家使用。

    附功能启用注册表内容(reg文件)

    Windows Registry Editor Version 5.00

    ; Created by: Shawn Brink
    ; http://www.tenforums.com
    ; Tutorial: http://www.tenforums.com/tutorials/14312-windows-photo-viewer-restore-windows-10-a.html

    [HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open]
    “MuiVerb”=”@photoviewer.dll,-3043”

    [HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
    6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
    00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
    25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
    00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
    6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
    00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
    5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
    00,31,00,00,00

    [HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\DropTarget]
    “Clsid”=”{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap]
    “ImageOptionFlags”=dword:00000001
    “FriendlyTypeName”=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,\
    00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,\
    77,00,73,00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,\
    00,65,00,72,00,5c,00,50,00,68,00,6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,\
    65,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,35,00,36,00,00,\
    00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap\DefaultIcon]
    @=”%SystemRoot%\\System32\\imageres.dll,-70”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap\shell\open\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
    6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
    00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
    25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
    00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
    6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
    00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
    5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
    00,31,00,00,00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Bitmap\shell\open\DropTarget]
    “Clsid”=”{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF]
    “EditFlags”=dword:00010000
    “ImageOptionFlags”=dword:00000001
    “FriendlyTypeName”=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,\
    00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,\
    77,00,73,00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,\
    00,65,00,72,00,5c,00,50,00,68,00,6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,\
    65,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,35,00,35,00,00,\
    00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\DefaultIcon]
    @=”%SystemRoot%\\System32\\imageres.dll,-72”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\shell\open]
    “MuiVerb”=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,\
    69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,\
    00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,\
    72,00,5c,00,70,00,68,00,6f,00,74,00,6f,00,76,00,69,00,65,00,77,00,65,00,72,\
    00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,34,00,33,00,00,00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\shell\open\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
    6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
    00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
    25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
    00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
    6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
    00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
    5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
    00,31,00,00,00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.JFIF\shell\open\DropTarget]
    “Clsid”=”{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg]
    “EditFlags”=dword:00010000
    “ImageOptionFlags”=dword:00000001
    “FriendlyTypeName”=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,\
    00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,\
    77,00,73,00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,\
    00,65,00,72,00,5c,00,50,00,68,00,6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,\
    65,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,35,00,35,00,00,\
    00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\DefaultIcon]
    @=”%SystemRoot%\\System32\\imageres.dll,-72”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\shell\open]
    “MuiVerb”=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,\
    69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,\
    00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,\
    72,00,5c,00,70,00,68,00,6f,00,74,00,6f,00,76,00,69,00,65,00,77,00,65,00,72,\
    00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,34,00,33,00,00,00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\shell\open\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
    6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
    00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
    25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
    00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
    6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
    00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
    5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
    00,31,00,00,00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Jpeg\shell\open\DropTarget]
    “Clsid”=”{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif]
    “ImageOptionFlags”=dword:00000001
    “FriendlyTypeName”=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,\
    00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,\
    77,00,73,00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,\
    00,65,00,72,00,5c,00,50,00,68,00,6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,\
    65,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,35,00,37,00,00,\
    00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif\DefaultIcon]
    @=”%SystemRoot%\\System32\\imageres.dll,-83”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif\shell\open\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
    6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
    00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
    25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
    00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
    6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
    00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
    5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
    00,31,00,00,00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Gif\shell\open\DropTarget]
    “Clsid”=”{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png]
    “ImageOptionFlags”=dword:00000001
    “FriendlyTypeName”=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,\
    00,46,00,69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,\
    77,00,73,00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,\
    00,65,00,72,00,5c,00,50,00,68,00,6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,\
    65,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,35,00,37,00,00,\
    00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png\DefaultIcon]
    @=”%SystemRoot%\\System32\\imageres.dll,-71”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png\shell\open\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
    6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
    00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
    25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
    00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
    6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
    00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
    5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
    00,31,00,00,00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Png\shell\open\DropTarget]
    “Clsid”=”{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp]
    “EditFlags”=dword:00010000
    “ImageOptionFlags”=dword:00000001

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\DefaultIcon]
    @=”%SystemRoot%\\System32\\wmphoto.dll,-400”

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\shell\open]
    “MuiVerb”=hex(2):40,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,\
    69,00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,\
    00,20,00,50,00,68,00,6f,00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,\
    72,00,5c,00,70,00,68,00,6f,00,74,00,6f,00,76,00,69,00,65,00,77,00,65,00,72,\
    00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,33,00,30,00,34,00,33,00,00,00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\shell\open\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
    6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\
    00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\
    25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,50,00,68,00,6f,\
    00,74,00,6f,00,20,00,56,00,69,00,65,00,77,00,65,00,72,00,5c,00,50,00,68,00,\
    6f,00,74,00,6f,00,56,00,69,00,65,00,77,00,65,00,72,00,2e,00,64,00,6c,00,6c,\
    00,22,00,2c,00,20,00,49,00,6d,00,61,00,67,00,65,00,56,00,69,00,65,00,77,00,\
    5f,00,46,00,75,00,6c,00,6c,00,73,00,63,00,72,00,65,00,65,00,6e,00,20,00,25,\
    00,31,00,00,00

    [HKEY_CLASSES_ROOT\PhotoViewer.FileAssoc.Wdp\shell\open\DropTarget]
    “Clsid”=”{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}”

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities]
    “ApplicationDescription”=”@%ProgramFiles%\\Windows Photo Viewer\\photoviewer.dll,-3069”
    “ApplicationName”=”@%ProgramFiles%\\Windows Photo Viewer\\photoviewer.dll,-3009”

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations]
    “.jpg”=”PhotoViewer.FileAssoc.Jpeg”
    “.wdp”=”PhotoViewer.FileAssoc.Wdp”
    “.jfif”=”PhotoViewer.FileAssoc.JFIF”
    “.dib”=”PhotoViewer.FileAssoc.Bitmap”
    “.png”=”PhotoViewer.FileAssoc.Png”
    “.jxr”=”PhotoViewer.FileAssoc.Wdp”
    “.bmp”=”PhotoViewer.FileAssoc.Bitmap”
    “.jpe”=”PhotoViewer.FileAssoc.Jpeg”
    “.jpeg”=”PhotoViewer.FileAssoc.Jpeg”
    “.gif”=”PhotoViewer.FileAssoc.Gif”
    “.tif”=”PhotoViewer.FileAssoc.Tiff”
    “.tiff”=”PhotoViewer.FileAssoc.Tiff”

    效果: