awreccan
awreccan

Reputation: 711

How to remove the right click menu in VLC Media Player?

I am adapting VLC to make a custom video player. I chose VLC because of its ability to play lots of formats, and because it allows me develop a custom skin for it very easily.

But I also want to restrict user access to the file system, for which I need to disable the right click menu. Is there a way to do this?

Upvotes: 36

Views: 49075

Answers (6)

tinker
tinker

Reputation: 642

enter image description here

Easy, use the excellent nirsoft portable tool to disable context menu items that you don't want.

  • To make it easier to find, sort by filename column first.
  • Click the first item, hold shift and click the last item to multiple select entries
  • Then, right click all the selected items and click disable.

Changes take effect immediately.

Upvotes: 0

TheAtomicOption
TheAtomicOption

Reputation: 1585

  1. Open the Registry Editor (regedit.exe). Find HKEY_CLASSES_ROOT\Directory\shell
  2. Under this key find each VLC key you would like to remove from folder context menus
  3. (Optional) right-click each key and choose Export. Save the exported reg files as PlayWithVLC-dir and AddToPlaylistVLC-dir. These .reg files can later be used to restore the context menu entries.
  4. Delete the key

Unfortunately VLC doesn't have an Preferences option to toggle this.

Solution found in the Remove context menu forum thread.

Upvotes: 62

qubodup
qubodup

Reputation: 9593

Create or download the following .reg files with the respective content:

DELETE-AddToPlaylistVLC (download)

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\AddToPlaylistVLC]

DELETE-PlayWithVLC.reg (download)

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\PlayWithVLC]

Then double-click for the menu entry you want removed.

Upvotes: 2

Welcor
Welcor

Reputation: 3083

Instead of playing around in the registry:

  1. uninstall VLC. You will be asked, if you want to keep your user settings. Say yes if you want to.
  2. download VLC installer again http://www.videolan.org/vlc/
  3. during installation uncheck the "Context Menus" install option.

For some people it was possible to skip step 1. But that may not work always.

enter image description here

Upvotes: 26

PollusB
PollusB

Reputation: 1816

Use this PowerShell script using an elevated console (RunAs Admin)

New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT #not permanent
Remove-Item HKCR:\Directory\shell\AddToPlaylistVLC\ -Recurse
Remove-Item HKCR:\Directory\shell\PlayWithVLC\ -Recurse

Upvotes: 20

user9488863
user9488863

Reputation: 59

Or just use CCleaner:

  1. Open CCleaner,

  2. Chose Tools,

  3. Select Startup,

  4. Go to context menu column on the right,

  5. Find what program you want to disable or delete from context menu,

Upvotes: 5

Related Questions