2015-07-30 16:04:38 +0000 2015-07-30 16:04:38 +0000
84
84

如何在Windows 10中带回Photo Viewer?

在Windows 10中,当打开图片时,它给我的选项是在Photos metro app、Paint或GIMP中打开。 dll,或 “C:/Program Files/Windows Photo Viewer "或 "C:/Program Files (x86)/Windows Photo Viewer "中,我得到一个 "This app can not run on your PC "的错误。有什么办法可以把它带回来吗?

答案 (6)

77
77
77
2015-07-31 14:01:01 +0000

我想是因为你第一次尝试直接运行.dll,"Windows Photo Viewer “条目仍然指向.dll,而不是rundll32,当然不能直接运行。

尝试在注册表中添加以下内容:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll]

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell]

[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\Applications\photoviewer.dll\shell\print]

[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\print\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\print\DropTarget]
"Clsid"="{60fd46de-f830-4894-a628-6fa81bc0190d}"

Source )

如果没有用,请尝试搜索注册表中的 Windows Photo Viewer 和 photoviewer.dll,看看是否有直接调用 photoviewer.dll 的引用(没有 rundll32)。

27
27
27
2015-07-30 16:24:34 +0000

我把我的方法弄好了,我想你必须用旧的照片查看器成功打开一张图片,然后你可以把它设置为默认的。在命令提示符中用这个打开一个图片,"%ProgramFiles/Windows Photo Viewer/PhotoViewer.dll", ImageViewFullscreen _pathToImageNoQuotes

  1. 然后我有了这个选项

现在我的PNGs默认用旧的照片查看器打开,效果很好。

18
18
18
2015-07-30 21:50:03 +0000

把这个放在一个.reg文件中,然后运行它:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\jpegfile\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\jpegfile\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

这将使所有的JPEG文件都能在Photo Viewer中查看。如果你想让其他类型的文件也能正常工作,只需将代码中的 “jpegfile "替换成 "pngfile"、"giffile"、"Paint.Picture"(Paint.Picture是.bmp类型)

找到任何图片,右键点击,选择打开,然后找到Windows Photo Viewer,选择它作为默认程序。

13
13
13
2015-09-16 20:45:57 +0000

你也可以使用【Winaero Tweaker】(http://winaero.com/comment.php?comment.news.1836)激活Windows照片查看器,如下截图所示。只需按照**描述**(绿色方框内),就可以使用了。

**PS:* Winaero Tweaker是一个免费的工具,可以用来调整Windows 10的很多方面。

3
3
3
2016-05-27 09:11:03 +0000

不幸的是,上面的答案对我来说都不奏效,但它们给我指出了正确的方向。

  1. 在Windows资源管理器中右键单击图像,选择Open With,然后选择Choose another app
  2. 在对话框中,向下滚动,点击More apps,然后点击`Look for another app on this PC.
  3. Then, at the bottom right, choose All Files (*.*) instead of Programs (*.exe ...), then navigate to C:\Program Files\Windows Photo Viewer and choose PhotoViewer. dll.
  4. Photo Viewer opens. Close it.
  5. Repeat Step 1: Right-click again on the image, choose Open With, then 选择另一个程序.
  6. Again scroll down to click on 选择更多的程序.
  7. Now Windows Photo Viewer appears in the apps list. Choose it and click on `使用这个程序打开.png文件。步骤5-7应该就足够了。
3
3
3
2017-12-15 13:47:54 +0000

我找到了一个不需要修改注册表就能解决的办法。我已经按照TechnoCore的答案,但正如评论中指出的那样,第二部分对我来说也不起作用。所以要怎么做:

  1. 以管理员身份打开一个命令行
  2. 输入以下内容:
>ftype MyFileType=%SystemRoot%\System32\rundll32.exe "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll" ImageView_Fullscreen %1
>assoc .jpg=MyFileType
  1. 然后进入图像文件,选择打开…,然后选择你刚才输入的命令:

确保你勾选了 “始终使用此应用程序… "选项。