Resources
https://msdn.microsoft.com/en-us/library/windows/desktop/dd758090 (v=vs.85). aspx
Http://www.xitonghe.com/jiaocheng/Windows10-2681.html
1. Edit the Registration form
The photo viewer for Windows 10 retains only the default support for TIFF files and needs to edit the registry to support files such as Png/jpg
Open HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\capabilities\fileassociations
Add. bmp/.gif/.jpeg/.jpg/.png a total of 5 string values whose values are set to "PhotoViewer.FileAssoc.Tiff"
You can save the following as a "Fix-photoviewer.reg" File and double-click the Import registry
Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\ Capabilities\fileassociations]". bmp" = "PhotoViewer.FileAssoc.Tiff" ". png" = " PhotoViewer.FileAssoc.Tiff "". jpg "=" PhotoViewer.FileAssoc.Tiff "". jpeg "=" PhotoViewer.FileAssoc.Tiff "
2. Specify the default program
Open Control Panel \ programs \ Default programs \ Set Default Programs, select "Windows Photo Viewer" in the list of programs on the left, then click "Set this program as default" on the right.
3. More Complete settings
After the above settings, the relevant picture file in the Explorer will be unified using the TIFF file icon, you can save the following as a registry file and import, re-execute the previous step to use their correct icon
Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\capabilities\fileassociations]". bmp" = "PhotoViewer.FileAssoc.Bitmap" ". Dib" = "PhotoViewer.FileAssoc.Bitmap" ". Jfif" = "PhotoViewer.FileAssoc.JFIF" ". jpg" = "PhotoViewer.FileAssoc.Jpeg" ". Jpe" = "PhotoViewer.FileAssoc.Jpeg" ". Jpeg" = "PhotoViewer.FileAssoc.Jpeg" ". PNG "=" PhotoViewer.FileAssoc.Png "". Wdp "=" PHOTOVIEWER.FILEASSOC.WDP "[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][Hkey_classes_root\photoviewer.fileassoc.bitmap\shell\open][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][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][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.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][Hkey_classes_root\photoviewer.fileassoc.png\shell\open][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][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}"
Windows 10 restores the photo viewer as the default picture viewer