No Windows Photo Viewer in Windows 10

There was a problem with the company’s computer, and I reinstalled the system using the company’s USB flash drive, but I found that the system lacks the photo viewing function, and I can only open the picture in the drawing, because this function is hidden.
You can open the registry to view: press the Windows logo key + R, enter the "regedit" command, open the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft directory in turn, and find the Windows Photo Viewer\Capabilities\FileAssociations directory item.
You can manually add the file format that needs to be viewed, or use the code provided later to solve it with one click.

Manually add:
right-click under FileAssociations to create a new string value, fill in the corresponding file suffix for
the value name , such as: .jpg , .png
value data fill in PhotoViewer.FileAssoc.Tiff, any format value data is always PhotoViewer.FileAssoc.Tiff.

insert image description here
Solution:
1. Create a text document
2. Write the following code in the document and save it

Windows Registry Editor Version 5.00

; Change Extension's File Type

[HKEY_CURRENT_USER\Software\Classes\.jpg]

@="PhotoViewer.FileAssoc.Tiff"

; Change Extension's File Type

[HKEY_CURRENT_USER\Software\Classes\.jpeg]

@="PhotoViewer.FileAssoc.Tiff"

; Change Extension's File Type

[HKEY_CURRENT_USER\Software\Classes\.gif]

@="PhotoViewer.FileAssoc.Tiff"

; Change Extension's File Type

[HKEY_CURRENT_USER\Software\Classes\.png]

@="PhotoViewer.FileAssoc.Tiff"

; Change Extension's File Type

[HKEY_CURRENT_USER\Software\Classes\.bmp]

@="PhotoViewer.FileAssoc.Tiff"

; Change Extension's File Type

[HKEY_CURRENT_USER\Software\Classes\.pcx]

@="PhotoViewer.FileAssoc.Tiff"

; Change Extension's File Type

[HKEY_CURRENT_USER\Software\Classes\.tiff]

@="PhotoViewer.FileAssoc.Tiff"

; Change Extension's File Type

[HKEY_CURRENT_USER\Software\Classes\.ico]

@="PhotoViewer.FileAssoc.Tiff"

3. Modify the file name to ".reg" format
4. Double-click to run the file. After success, you can use the window photo viewer to open the picture

Guess you like

Origin blog.csdn.net/qq_36562656/article/details/108981507