If you open
the Registry, you??™ll see that HKEY_CLASSES_ROOT\.xlsx points to HKEY_CLASSES_
ROOT\Excel.Sheet.12, so you proceed to HKEY_CLASSES_ROOT\Excel.Sheet.12\
Shell. Inside the Shell key, you??™ll see three subkeys named??”you guessed it
??”New, Open, and Print. Add a new subkey to Shell, followed by the subkeys
described shortly, and you??™ll get a new entry in the context menu for all
files of the selected type.
Figure 3-14. Right-click a file to show its context menu; Windows Vista doesn??™t make it
easy to customize the items you see here
File Type Associations | 133
The Registry
See a context menu item you want to get rid of? Just delete
the corresponding key here, and it??™ll disappear immediately.
If you don??™t see the key here, it may be listed in one of five
other places:
??? Look for a second Shell subkey in the extension key (e.g.,
HKEY_CLASSES_ROOT\.xlsx\Shell).
??? The ShellEx\ContextMenuHandlers branch, discussed
later in this section.
??? The * key covered in the ???Special File Type Keys??? sidebar,
earlier in this chapter.
??? The nasty UserChoice key described in the upcoming
sidebar, ???The Evils of UserChoice.???
??? The SystemFileAssociations branch explained in
???Expand the Scope of Your File Types,??? later in this
chapter.
The action shown in bold (usually Open) is called the default, and is the one
carried out when you double-click the file. The (Default) value in the Shell
key determines which action is the default; if (Default) is empty and there??™s
more than one action, Windows assumes it??™s the one named Open.
Pages:
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204