Reputation: 711
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
Reputation: 642
Easy, use the excellent nirsoft portable tool to disable context menu items that you don't want.
Changes take effect immediately.
Upvotes: 0
Reputation: 1585
regedit.exe
). Find HKEY_CLASSES_ROOT\Directory\shell
PlayWithVLC-dir
and AddToPlaylistVLC-dir
. These .reg
files can later be used to restore the context menu entries.Unfortunately VLC doesn't have an Preferences option to toggle this.
Solution found in the Remove context menu forum thread.
Upvotes: 62
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
Reputation: 3083
Instead of playing around in the registry:
For some people it was possible to skip step 1. But that may not work always.
Upvotes: 26
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
Reputation: 59
Or just use CCleaner:
Open CCleaner,
Chose Tools,
Select Startup,
Go to context menu column on the right,
Find what program you want to disable or delete from context menu,
Upvotes: 5