如何在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 "的错误。有什么办法可以把它带回来吗?
在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 "的错误。有什么办法可以把它带回来吗?
我想是因为你第一次尝试直接运行.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)。
我把我的方法弄好了,我想你必须用旧的照片查看器成功打开一张图片,然后你可以把它设置为默认的。在命令提示符中用这个打开一个图片,"%ProgramFiles/Windows Photo Viewer/PhotoViewer.dll", ImageViewFullscreen _pathToImageNoQuotes
现在我的PNGs默认用旧的照片查看器打开,效果很好。
把这个放在一个.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,选择它作为默认程序。
你也可以使用【Winaero Tweaker】(http://winaero.com/comment.php?comment.news.1836)激活Windows照片查看器,如下截图所示。只需按照**描述**(绿色方框内),就可以使用了。
**PS:* Winaero Tweaker是一个免费的工具,可以用来调整Windows 10的很多方面。
不幸的是,上面的答案对我来说都不奏效,但它们给我指出了正确的方向。
Open With
,然后选择Choose another app
。More apps
,然后点击`Look for another app on this PC.All Files (*.*)
instead of Programs (*.exe ...)
, then navigate to C:\Program Files\Windows Photo Viewer
and choose PhotoViewer. dll
.Open With
, then 选择另一个程序
.选择更多的程序
.我找到了一个不需要修改注册表就能解决的办法。我已经按照TechnoCore的答案,但正如评论中指出的那样,第二部分对我来说也不起作用。所以要怎么做:
>ftype MyFileType=%SystemRoot%\System32\rundll32.exe "C:\Program Files\Windows Photo Viewer\PhotoViewer.dll" ImageView_Fullscreen %1 >assoc .jpg=MyFileType
确保你勾选了 “始终使用此应用程序… "选项。