You never print a document without opening it?, never create a file compressed from the "new" menu and add files to the archive?, when you click on a video or a song is taking too long to only show thousands of useless options?. This article is for you.
Surely you've seen the multitude of options that are added to the context menu (which appears when you click) in the different types of files. As for example, a Microsoft Word document originally has options to open it, print it, edit it and create a new one, and even more so if you have more installed applications appear options like convert to formats such as pdf. Maybe use these functions and that is fine, but what if you don't?, never gave you the option to choose whether you wanted them or not, slower your team with millions of different options for each file and where many times many of them do the same thing as for example open, modify and edit often perform the same task.
2010-06-15: added new key 'special' in point 3, section D
Also when you want to create a new folder or shortcut, the "new" menu takes several seconds to appear and shows many types of files when you use only a few. My idea is to show how to solve these problems, the base lies in an element called registration.
The Windows registry is hated and loved. I have heard that some Linux distributions have thought the inclusion of a kind of database of configurations, such as registry makes it primarily due to the efficiency that delivers and ease that gives developers.
The same record is not magic, its content is located in protected files from the computer that can be accessed by interfaces like the registry editor or better known as Regedit.
Thanks to the register, relatively efficient Windows access configurations and parameters for the system and programs, even there is a branch of the registry that is personal for each user and is charged depending on the login that is used. However, due to multiple reasons, the registry may contain millions of useless data and given that applications use it, but do not form part, many of these data are waste. Understanding the registry is an almost impossible task, especially if we try to understand the functioning of the kinds of files, one of the branches more important that tells the system how to treat each file.
It is important to note that improper modifications to the register easily leaves unusable equipment, so it must be released under their own responsibility
Introduction to the registry editor
As registration not can be edited directly using a Basic editor as with other configuration files as the files ". ini ', we must know the Windows registry editor. To call it, simply run Regedit.exe system root directory or write Regedit from start / run.
In the pane on the left of the registry editor we see a tree of "Key" calls. A key is like a folder of options, and inside one can coexist many others although they name must be unique.
If you select a key, we will see the values it contains in the right pane. Probably if we choose one of the main keys only we will see the default value, always existing value. In this article we will focus on the key designated as HKEY_CLASSES_ROOT in the list.
Basic operation of classes
The following outline that I wrote general shows the operation of classes (main parts), which involves the relationship of an extension with a file type which defines general properties of that extension.
Dynamic controls are defined by a special type, which is a unique identifier. This identifier has a structure based on the following pattern:
Sometimes we will have to know to identify this type of relations by means of identifiers, because there are some files that relate to functions in this way. The explanation behind this is that this is the simplest form of linking libraries with applications without that applications need to discover for themselves the original path of the file containing the library, thus, only refer to its identifier.
Removing items from the context menu
There are several options that we have to perform this task. We sometimes use several of them to achieve what we want. I will explain each of the ways independently in the following steps:
A safe disposal
Although it is the less effective, probably in the majority of the time to be effective, and in no instance may prove to be harmful.
Consider that I wish to delete the option "Print" our imaginary file type ". text", go to "Folder options" in the tools of any folder menu:
Within the "file types", we are looking for our desired file type:
Select the file type, click Advanced options and remove items that we do not want the shortcut menu:
It is worth to highlight that the editor provided by Windows edit file type, however, often several file types refer to the same extent by what you must save your changes and return to editing the same extent where probably appear again items that have been deleted.
To check the true effectiveness of what we just did, we started the implementation that I think these elements of the context menu and review if these elements returned to appear.
B. removal safe, alternative
Alternatively, applications can be used to modify the shortcut menu. There is a tool called Lopesoft FileMenuTools which allows you to modify and add options, even if it cannot independently modify elements by type of file as ContextEdit, application included in Avatar Utilities 2005.
C. removal safe and massive
Every time you install a new application, sometimes without wanting to install it (as for example when Microsoft Office detects that it needs to be repaired for whatever reason, though, I personally checked in the version of Office 2007 already does not happen 'sudden' repairs) many of our configurations to the contextual menu are lost (for example I always delete items "New", "Open as read-only", "Print", "Modify" from the files of the office suite). To avoid having to perform all the work again, the more easy it is to create a ".cmd" file with the list of instructions that we usually delete and add each time instructions not desired, unfortunately until that application developers understand that not all the users wish to have all in the context MENU, an example of this file (to eliminate the options of "New" of the majority of related files with) Microsoft Word) can be:
D. contextual libraries
Some applications insert dynamic libraries that add context menu. Applications like for example Windows Media Player they loaded a dll that is responsible for adding the elements of "Add to playlist" and other options, the library is in "Windows/System32" with the name of "wmpshell.dll" which should be deleted downloading explorer.exe and eliminated any reference to the described instructions in this document.
To isolate these elements, we have an advanced control of the registry. To illustrate the process, show you them how to remove a control that adds a editor Hexagesimal called Hex Workshop.
The first thing is to identify which extension is affected. There are files that probably do not have extension, such as folders, file directories, access direct, however are treated as types of files in the registry with the names of Folder, Directory and lnkfile associated with the extension .lnk respectively.
The shortcut target menu is as follows:
When you select any file, except for the folders, i.e. files with extension "*". We are going to the registry to check this:
There are various "extensions" that have special file types. In reality they are not extensions (there are cases in which are extensions, but with a parameter named "NeverShowExt", to never show the extension even when the system is configured to display them), but the system handles them in a special way, some of its keys are:
Also, there are some "special" keys that make the times of containers (mainly of IDs libraries, applications, components, etc):
It is important to consider that the same "special" keys can be in HKEY_LOCAL_MACHINESOFTWAREClasses and HKEY_CURRENT_USERSoftwareClasses, for example HKEY_CURRENT_USERSoftwareClassesApplications
If we inquire into the ShellEx key find drivers Properties pane (those that add tabs to the properties of files as Winrar compression and properties of Adobe Acrobat pdf) and context menu handlers. Inside is our goal:
However, when we select it we discovered that it contains only the following information inside:
Well, this is what you explained at the beginning. This is a unique identifier of the library. To discover the true library behind this mask, we look for the sequence in the registry editor:
Look at the options used, only search keys with full values. Thus we optimize the search which sometimes can take a couple of minutes.
The result of the search is clear then:
Within this class with default value "Hex Workshop Shell Extension" (which assures us even more than we have found the key), we find the "InProcServer32" key to the searched file reference:
We should simply delete this library and we get rid of the shortcut menu. To remove (or just rename it) must close explorer.exe (and work only with Windows console) from the Task Manager, processes and use the command console. Can we disable the extension simply by invoking the command "regsvr32 /u < path and name >" with the library information.
E of master type extension
Sometimes a type of file has multiple extensions. For example an image can have extension ".jpg", ".jpeg", but share all other properties, such as the name of the file type that is displayed in Windows Explorer, the commands "Open", "Edit", among others.
In these situations the best isn't placing all these parameters directly in the extension key, but associate this extension with a master file type. In this case simply change this master file-type key:
To make more clear this aspect, in the following image you can see the type of master file of the ".jpg" extensions and ".jpeg" relate to "jpegfile" which has all the commands and common properties for both:
"Content Type" and "PerceivedType" keys work in a way similar to the one shown here, but are related with the content type and the application or applications that handle it as seen in the following point
Although the master file type can be clearly seen in the registry editor, there is also a command in the console of Windows for this purpose:
The command called with all parameters will modify the master file type for the. extension. Alternatively, you can see the complete list of extensions vs. file types by writing "ASSOC" without parameters, check the file type of an extension writing "ASSOC. extension" and finally delete the pairing with a file type by typing "ASSOC. extension =".
By default, Windows creates types of master files for file associations created by the user using the following format:
Externally this peculiarity happens unnoticed by the user, by creating a new partnership with a file extension can choose the associated file type using the name to show that we write in the description (which internally will have the previous key name) from advanced options:
Related to this aspect also have a kind of generic file which is created when it is the system that creates the extension (usually from the dialogue "Open with...", when it is that this programme should always be worn to open the file):
F extension type, and type up to application
On certain occasions, an extension is associated with a file type, but this type is not shortcut menu, or a dynamic library that you add to it. Then in this case is probably another type of relationship.
This relationship is by application, i.e. the shortcut menu extensions is her reference to the application (executable file) and not to the type of file, as in the case of the Windows Photo Viewer, or Notepad. In these last two examples, there are direct references to the application Shimgvw.dll and Notepad.exe respectively.
To delete references of this type, we will key "Applications", which is the key to classes:
There we are looking for the executable file that is associated with the file type, this is in relation with the type of file and the extension:
As a summary to the scheme, we must edit shortcut key "Applications" options, to edit the menu that appears according to the content.
Depending on the content, extensions are related from the key to content that is in the branch below:
More than one user will have noticed some menu items See, Explorer bar (all folders in) Windows XP/2003 or earlier) that are really old, even with Windows XP SP2 (even with) Internet Explorer 7 or higher) almost completely lost functionality:
To remove easily, since HKEY_CLASSES_ROOT/CLSID they invalidate the following keys (I added a question mark at the beginning to cancel them):
The "explorer.exe" process must then be restarted to see the changes. Some elements may not be on your computer depending on the applications that you have installed or use (such as the 'Discussion' option that is activated when you use Outlook Express). The pleasant result:
(G). The default action
It makes sense when you double click on a folder is open in Windows Explorer, what changes when this happens?, where are stored the default actions that are associated by double clicking?:
First, at the level of user, the default action is what appears in folder options (in the tab file types) and is easily modifiable:
Of course this feature is well limited so sometimes have to directly modify the registry. Now, the default action, seen from the point of the registry keys is simply the designating the "(default)" item in the container of actions, i.e. looking at the case of the extension of the previous image).docm), we will log and discovered that directly has no key "Shell", however it is associated to a master type:
Now if we see the master file type:
See that in "(default)" we have designated the "open" action, it is will be the default when you double-click this type of file.
All this is fine, but sometimes it can be confusing, for example, what if any action appears as the default, but is not in the list of actions:
Note that "open" is not in the list of actions. We must never forget that Windows collects large amounts of data before showing context menu, what happens here is simply that the "open" action is transferred to an inherited type of "Directory", such as "Folder".
Many problems can happen by this situation, the most common example is when you double click on a folder or drive does not get a desired behavior.
To understand the form of operation of the special context menu of these elements we must take into account the special thing is this menu and its origins in this basic scheme:
So if for example you double click on a unit opens them the file browser but when clicking on a normal folder will not, know that they should review HKCRShellDrive and not HKCRShellFolder It is the first container.
The easiest when is a program corrupts the kinds of files is to quickly restart and press F8 before it starts to load Windows, selecting "Last good configuration known". The other possibility is to compare classes already known with a computer in good condition.
A final detail is that when the dialog pops up of "open with..." when you double click on a file, it is simply because the key "shell" of the type of file and file mother of that same type type is empty.
Creating a new file
Sub menu offers other options in addition to those we have just reviewed previously. If we click on an area without icons we can access a menu marked as "New". From that menu you can create new files from scratch, without a generator application. For text files, folders and shortcuts, this is almost impresindible:
However, when you want to create an Adobe Photoshop file, or a file from? AtlTraceTool do you see in the image?
Probably never. The solution for creating most of these files is simply open the application generating them, although there may be certain exceptions such as for example the compressed files can be comfortable attach files to a file "blank".
Then do so have millions of file types in this menu when using the basic we have enough and don't have to wait several seconds to display the full menu?. The idea is to get a menu that contains only the new files we need, in my case is similar to the following:
Or at least one more full with the options that you want. Unlike Windows 98 or ME, in Windows 2000, XP or 2003 from this menu is controlled by means of the registry and not in a folder but this method is still preserved.
The steps to eliminate these elements lies in the use of a tool of tools provided by Microsoft to its users.
The proposed tool is called TweakUI, free, which can be downloaded from the website of Microsoft. Option "Templates" you can add and remove items from the sub menu:
As a reference, the only thing that makes TweakUI is to override property ShellNew in the registry. This property may be seen in the following image:
To override the property "ShellNew" simply the program adds a symbol later, i.e. "ShellNew" becomes "-ShellNew".
Templates for new files that can not be created as files without structure (the associated application would display an error when you open a file of zero bytes) generally are in SHELLNEW directory, inside the WINDOWS folder
When the application back
Some applications tend to generate the element that we removed again. For example although we delete the option "Change" with Microsoft Word HTML documents, these again arise whenever we open Microsoft Word.
Another example is when the menu "New" delete "Adobe Photoshop Image" item, if we started Adobe Photoshop (at least in the version CS and CS2 for this application) these elements return and are generated again, Macromedia Flash MX, MX 2004 and version 8 of these applications also do the same.
To avoid this, we will manage the permissions of the registry. As an example, I will show how to forbid you to Photoshop to reactivate "ShellNew". First, delete the item "Adobe Photoshop Image" with TweakUI. Now open Photoshop:
We make sure that the item reappears in the "New" menu:
Certainly the returned element. It is incredible that they added automatic restoration systems applications, I personally prefer that these options be included as an alternative and not imposition, probably could ask the user.
We are going to the registry editor, look for the extension of the file that generates the "Adobe Photoshop Image" which is ".psd":
They notice the existence of "ShellNew" in conjunction with "-ShellNew"?, TweakUI had cancelled the previous "ShellNew", which was rebuild by Photoshop. Now we remove all the named elements:
Then we set the permissions of ".psd":
Go to "Advanced options" and then in the "Permissions" tab, modify "Admins (domain)":
We must deny the creation of new subkeys:
Now we have protected our automated recovery of applications file type that will keep our configuration intact.
The denial of permission is usually invisible to the user and applications, the registry generates refusal internally (can be seen with specialized tools such as) Regmon), but applications will not display an error unless they are prepared to do so (as certain installers who are checking that the changes in the register is made)
The procedure shown in the previous steps may be the only available when applications are designed to "aggressively" repair the registry modifications automatically, preventing the user to configure your computer as you want, however there is a way less invasive (although sometimes not as effective) which consist of create a key "LegacyDisable" (worthless) rather than reassign permissions.
This property which can be applied to an infinity of "active" items from the log, for example in the image is shown as prevent option will not be displayed to create files ". mp7" in the "New" menu, even when the application that uses the files ". mp7" repeatedly generate the key "ShellNew" (if the borraramos):
Some applications "insist" Cancel "LegacyDisable" in any way (deleting this or creating other keys that have a preference for Windows), so the final option that remains is to deny permission to create subkeys for these records
The stubborn hard disk
In some cases, the hard drive seems not to respond to our double click or run incorrectly.
After reading this document you will be able to understand how to configure the predefined element, especially when some bad intentioned program has affected our team, hard disk and other elements can depend on the following keys: