Adding an entry to a file type on right click menu

L

Lindsay

I'm a programmer but have come across a problem relating to XP rather than
programming.

I have written an app that requires an entry on the right click context menu
for some image file type (.bmp, .gif, etc). To do this I added this entry to
the registry:

HKEY_CURRENT_USER\giffile\shell\Quick Edit\command

So when I right click a Gif file, Quick Edit appears on the menu at the top
with Open/Edit/Preview etc.

Now, this works fine on my machine (SP2) but does not work on anyone elses
(tried 2 brand new Dell laptops). Any reason why the entries may not appear
on the menu?
 
R

Ramesh, MS-MVP

Most probably caused if the user is using a different application for that
file type. Your setting will work as long as the ProgID is "giffile" for
GIFs. For consistent results, you use the SystemFileAssociations branch.

<MSDN>

The SystemFileAssociations keys exist to guarantee that Shell extensions are
installed regardless of the current default PROGID or user customization.
These keys enable Windows XP to define fallback attributes for file types
and enable shared file associations. Supplemental verbs should be added
under SystemFileAssociations .

</MSDN>

PerceivedTypes, SystemFileAssociations, and Application Registration:
http://msdn.microsoft.com/library/d...nding/fileassociations/fa_perceived_types.asp
© 2006 Microsoft Corporation. All rights reserved.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


I'm a programmer but have come across a problem relating to XP rather than
programming.

I have written an app that requires an entry on the right click context menu
for some image file type (.bmp, .gif, etc). To do this I added this entry to
the registry:

HKEY_CURRENT_USER\giffile\shell\Quick Edit\command

So when I right click a Gif file, Quick Edit appears on the menu at the top
with Open/Edit/Preview etc.

Now, this works fine on my machine (SP2) but does not work on anyone elses
(tried 2 brand new Dell laptops). Any reason why the entries may not appear
on the menu?
 
R

Ramesh, MS-MVP

BTW, that information applies to Windows XP only. Using supplemental verbs
on Windows versions earlier than Windows XP is not supported and is not
recommended.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Most probably caused if the user is using a different application for that
file type. Your setting will work as long as the ProgID is "giffile" for
GIFs. For consistent results, you use the SystemFileAssociations branch.

<MSDN>

The SystemFileAssociations keys exist to guarantee that Shell extensions are
installed regardless of the current default PROGID or user customization.
These keys enable Windows XP to define fallback attributes for file types
and enable shared file associations. Supplemental verbs should be added
under SystemFileAssociations .

</MSDN>

PerceivedTypes, SystemFileAssociations, and Application Registration:
http://msdn.microsoft.com/library/d...nding/fileassociations/fa_perceived_types.asp
© 2006 Microsoft Corporation. All rights reserved.
 
R

Ramesh, MS-MVP

YW. Note that these supplemental verbs are unsupported in pre-XP systems.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Aha! Yes, of course. Thank you.
 
L

Lindsay

As a thought, this would mean that, if at anytime some other software was
installed/uninstalled that changes file associations, my software would
cease to appear on the menu. Is there a way to avoid this?
 
R

Ramesh, MS-MVP

And, just noticed this:

- - -
HKEY_CURRENT_USER\giffile\shell\Quick Edit\command
- - -
*Wrong area*

Did you mean HKEY_CLASSES_ROOT ?

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


YW. Note that these supplemental verbs are unsupported in pre-XP systems.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Aha! Yes, of course. Thank you.

news:%[email protected]...
 
R

Ramesh, MS-MVP

If you're adding a supplemental verb, it won't cease to appear when the user
changes the file associations.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


As a thought, this would mean that, if at anytime some other software was
installed/uninstalled that changes file associations, my software would
cease to appear on the menu. Is there a way to avoid this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top