如何禁用Windows Media Player上下文菜单中的“播放”?


21

在Windows(Vista)中,查看文件夹时,右键单击某个项目时,出现菜单“使用Windows Media Player播放”。

如何设置它使其不显示子菜单?

(虽然不确定我是否要卸载Windows Media Player)

我没有问题,如果需要注册表修改,只需要知道在哪里...


我在寻找相同的东西。奇怪的是(真的吗?),它似乎并没有以通常的方式挂接到系统中(Sysinternals的Autoruns或Nirsoft的ShellExView都没有,甚至Regedit也找不到)。我怀疑它可能会被部分隐藏在其他“通用”模块中,而不是其自身的DLL中,因此很难找到。如果找到了(嗯,不,何时),我会通知您。
Synetech

1
没关系,这比我想的容易得多。不幸的是,我浪费时间通过使用Process Monitor来观察注册表访问,而不仅仅是在注册表中搜索字符串。咄。:)
Synetech

Answers:


22

相关条目在注册表中出现了几次,但是只需要删除一个位置即可禁用上下文菜单条目。此外,上下文菜单条目针对不同类型的媒体文件和文件夹而单独存在,具体取决于它是音频,图像还是视频。最后,有单独的条目可以播放WMP中的项目并将其添加到WMP播放列表中。这将创建十二个需要删除的排列(实际上,只有十个,因为似乎没有图像文件条目,只有图像文件夹条目)。

这是从文件和文件夹的所有三种媒体类型中删除这两个命令的方法:创建具有以下内容的.reg文件并运行它。

REGEDIT4
;Remove "Play with Windows Media Player" context menu entries

[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\Enqueue]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\Play]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shell\Enqueue]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shell\Play]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Video\shell\Enqueue]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Video\shell\Play]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\audio\shell\Enqueue]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\audio\shell\Play]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\video\shell\Enqueue]
[-HKEY_CLASSES_ROOT\SystemFileAssociations\video\shell\Play]

将它们添加回去的时间更长(如下),因此您可能需要备份它们。


如果要保留上下文菜单项,而只是删除加速器(P),以便可以轻松粘贴文件而不必先通过WMP项,则需要修改其他注册表项:

In this key:
[HKEY_CLASSES_ROOT\Local Settings\MuiCache\149\52C64B7E]

Change this value:
"@C:\Windows\system32\unregmp2.exe,-9801"="&Play with Windows Media Player"

To this (or something else; the & marks the accelerator):
"@C:\Windows\system32\unregmp2.exe,-9801"="Play with Windows Media Player"

Similarly, the Add to WMP entry is:
"@C:\Windows\system32\unregmp2.exe,-9800"="&Add to Windows Media Player list"



REGEDIT4
;Restore "Play with Windows Media Player" context menu entries

[HKEY_CLASSES_ROOT\SystemFileAssociations\audio\shell\Enqueue]
@="&Add to Windows Media Player list"
"MUIVerb"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,75,6e,72,65,67,6d,70,32,2e,65,78,65,2c,2d,39,38,30,30,00
"NeverDefault"=""
[HKEY_CLASSES_ROOT\SystemFileAssociations\audio\shell\Enqueue\command]
"DelegateExecute"="{45597c98-80f6-4549-84ff-752cf55e2d29}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\audio\shell\Play]
@="&Play with Windows Media Player"
"MUIVerb"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,75,6e,72,65,67,6d,70,32,2e,65,78,65,2c,2d,39,38,30,31,00
"NeverDefault"=""
[HKEY_CLASSES_ROOT\SystemFileAssociations\audio\shell\Play\command]
"DelegateExecute"="{ed1d0fdf-4414-470a-a56d-cfb68623fc58}"



[HKEY_CLASSES_ROOT\SystemFileAssociations\video\shell\Enqueue]
@="&Add to Windows Media Player list"
"MUIVerb"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,75,6e,72,65,67,6d,70,32,2e,65,78,65,2c,2d,39,38,30,30,00
"NeverDefault"=""
[HKEY_CLASSES_ROOT\SystemFileAssociations\video\shell\Enqueue\command]
"DelegateExecute"="{45597c98-80f6-4549-84ff-752cf55e2d29}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\video\shell\Play]
@="&Play with Windows Media Player"
"MUIVerb"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,75,6e,72,65,67,6d,70,32,2e,65,78,65,2c,2d,39,38,30,31,00
"NeverDefault"=""
[HKEY_CLASSES_ROOT\SystemFileAssociations\video\shell\Play\command]
"DelegateExecute"="{ed1d0fdf-4414-470a-a56d-cfb68623fc58}"



[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\Enqueue]
@="&Add to Windows Media Player list"
"MUIVerb"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,75,6e,72,65,67,6d,70,32,2e,65,78,65,2c,2d,39,38,30,30,00
"NeverDefault"=""
[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\Enqueue\command]
"DelegateExecute"="{45597c98-80f6-4549-84ff-752cf55e2d29}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\Play]
@="&Play with Windows Media Player"
"MUIVerb"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,75,6e,72,65,67,6d,70,32,2e,65,78,65,2c,2d,39,38,30,31,00
"NeverDefault"=""
[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\Play\command]
"DelegateExecute"="{ed1d0fdf-4414-470a-a56d-cfb68623fc58}"



[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shell\Enqueue]
@="&Add to Windows Media Player list"
"MUIVerb"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,75,6e,72,65,67,6d,70,32,2e,65,78,65,2c,2d,39,38,30,30,00
"NeverDefault"=""
[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shell\Enqueue\command]
"DelegateExecute"="{45597c98-80f6-4549-84ff-752cf55e2d29}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shell\Play]
@="&Play with Windows Media Player"
"MUIVerb"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,75,6e,72,65,67,6d,70,32,2e,65,78,65,2c,2d,39,38,30,31,00
"NeverDefault"=""
[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shell\Play\command]
"DelegateExecute"="{ed1d0fdf-4414-470a-a56d-cfb68623fc58}"



[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Video\shell\Enqueue]
@="&Add to Windows Media Player list"
"MUIVerb"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,75,6e,72,65,67,6d,70,32,2e,65,78,65,2c,2d,39,38,30,30,00
"NeverDefault"=""
[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Video\shell\Enqueue\command]
"DelegateExecute"="{45597c98-80f6-4549-84ff-752cf55e2d29}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Video\shell\Play]
@="&Play with Windows Media Player"
"MUIVerb"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,75,6e,72,65,67,6d,70,32,2e,65,78,65,2c,2d,39,38,30,31,00
"NeverDefault"=""
[HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Video\shell\Play\command]
"DelegateExecute"="{ed1d0fdf-4414-470a-a56d-cfb68623fc58}"

1
或更好的方法是:➀运行C:\Windows\system32\ComputerDefaults.exe→down向下滚动Choose a default media-player→➂ Enable access to this program→ 删除单击OK完成 →➄ ?→ⓅⓇⓄⒻⒾⓉthe!

5

赶紧跑:

regsvr32 /u wmpshell.dll

这将注销Windows Media Player Shell扩展,从而删除“ 使用WMP播放”条目。


关心解释这是如何工作的@ rootslan.ru吗?
伊沃·弗利普斯

我已经尝试过了,但是没有用。它只会从中删除条目HKCR\CLSID,而不会删除相关SystemFileAssociations条目。
Synetech


4

摆脱上下文菜单中的“使用Windows Media Player播放”和“添加到Windows Media Player列表播放”条目。

控制面板-默认程序-设置程序访问权限和计算机默认值。

单击自定义,如果未显示任何内容,请将其更改为其他内容,然后单击它。

在“选择默认媒体播放器”下,取消选择“从Windows Media Player和Windows Media Center以及任何其他程序(例如iTunes)启用对此程序的访问”


2

别忘了删除

HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shellex\ContextMenuHandlers\WMPShopMusic

在音频目录上下文菜单中摆脱“在线购买音乐”。


这不是论坛,答案不一定总是以相同的顺序列出。
Tamara Wijsman

谢谢,由于菜单标签不在注册表中,我很难用通常的方法来查找注册表。
Gras Double

1

在Windows Vista(可能还有Windows 7?)中,可以删除以下键:

HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shellex\ContextMenuHandlers\WMPAddToPlaylist
HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shellex\ContextMenuHandlers\WMPAddToPlaylist
HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Video\shellex\ContextMenuHandlers\WMPAddToPlaylist

所有这些的默认值均为{F1B9284F-E9DC-4e68-9D7E-42362A59F0FD},这是用于将媒体添加到Windows Media Player的上下文处理程序的CLSID。

我这样做是为了摆脱Windows资源管理器“文件”菜单中令人讨厌的“添加到&Windows Media Player列表”条目,这意味着即使当前选择了文件夹,ALT-F,ALT-W键序列也将始终选择“ New&Folder”在资源管理器中。我仍然希望能够加入单个文件。

请注意,这些目录关联中也有WMPPlayAsPlaylistWMPShopMusic键,您也可能希望删除。

删除密钥后,我重新启动;我不知道这是否必要。


-1

删除外壳扩展“使用Windows Media Player播放”

I had the same problem, but unfortunately, I didn't find the keys I was
looking for in the registry and it's too boring going through Folder
Options. After a quick Google search, I dug this up:

1. Go to Start > Run
2. Type in "regsvr32 /u wmpshell.dll" (without the quotes)
3. Hit OK
4. Voila! No more WMP shell extensions
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.