Adding my app's link to Desktop Context Menu
-
When you right click on the desktop you get a context menu that has something like that: ----------------------- Arrange Icons By Refresh ----------------------- Paste Paste Shortcut ----------------------- New ----------------------- Properties ----------------------- I need to add a link to my application on Desktop's context menu. How can I accomplish that? What registry key do I need to modify/add to get my app icon listed on the desktop context menu? E.g.: --------------------------- Arrange Icons By > Refresh --------------------------- My App Link > Paste Paste Shortcut --------------------------- New --------------------------- Properties --------------------------- Please help. Thanks.
-
When you right click on the desktop you get a context menu that has something like that: ----------------------- Arrange Icons By Refresh ----------------------- Paste Paste Shortcut ----------------------- New ----------------------- Properties ----------------------- I need to add a link to my application on Desktop's context menu. How can I accomplish that? What registry key do I need to modify/add to get my app icon listed on the desktop context menu? E.g.: --------------------------- Arrange Icons By > Refresh --------------------------- My App Link > Paste Paste Shortcut --------------------------- New --------------------------- Properties --------------------------- Please help. Thanks.
Hi, There are several ways to do it, here is one using the RegistryKey classes:
// create 2 registry entries to get an entry in the Explorer context menu for all files and folders:
// (replace AllFilesystemObjects by * for files not folders)
// HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell\appname.ContextMenu:
// (Default) Open using myApp
// HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell\appname.ContextMenu\Command:
// (Default) apppath "%1"you would need admin privileges to do this. :)
modified on Friday, April 10, 2009 9:34 AM
-
Hi, There are several ways to do it, here is one using the RegistryKey classes:
// create 2 registry entries to get an entry in the Explorer context menu for all files and folders:
// (replace AllFilesystemObjects by * for files not folders)
// HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell\appname.ContextMenu:
// (Default) Open using myApp
// HKEY_CLASSES_ROOT\AllFilesystemObjects\Shell\appname.ContextMenu\Command:
// (Default) apppath "%1"you would need admin privileges to do this. :)
modified on Friday, April 10, 2009 9:34 AM
Thanks i am already know this that. but i want to know how to add shortcut on desktop context menu, so that whenever user perform right click on desktop, my application's shortcut should be visible. please help me
-
Thanks i am already know this that. but i want to know how to add shortcut on desktop context menu, so that whenever user perform right click on desktop, my application's shortcut should be visible. please help me
I am unaware of a registry key supporting the desktop context menu. There must be ways to do it programmatically, sending some Windows messages to the desktop Window, it is a simple ListView after all. However I don't know any details, never saw it, never needed it. :)