0

There is a solution of my question here.

this works file for me if default app is present. what if there is not default app present for some extension? is there any way to add item in right click menu of that file extension without making my app as default app for file extension?

Community
  • 1
  • 1
kitkat43
  • 11
  • 3
  • Please summarize the original question in addition to the link – Leeor Jan 28 '14 at 07:29
  • i want to add iten in right click menu of specific file extension,but i dont want to change default application of that extension. – kitkat43 Jan 28 '14 at 08:08
  • Which file extension are we talk about ? – Knuckle-Dragger Jan 28 '14 at 09:35
  • i want to do it for .zip file extension. – kitkat43 Jan 28 '14 at 09:36
  • might get tricky, .zip is over-written by many apps, and the location to make changes at is different. On my machine with Winrar, it resets the shell key to `HKEY_CLASSES_ROOT\WinRAR.ZIP\shell` where I can create custom shell extensions for .zip files. But if I installed 7zip, it will overwrite the HKCR\.zip default value to no longer point to `HKCR\WinRAR.ZIP`, and I will lose all the custom settings from the WinRAR key. I guess the ticket would be to read the .zip default value adjusting the location on-the-fly. – Knuckle-Dragger Jan 28 '14 at 09:47
  • already done by this method. i am checking default registry of .zip extension and then adding my entry there. but my actual problem is that if there is no default app present for .zip file extension,how can i add in context menu without making my application as default application of .zip files. – kitkat43 Jan 28 '14 at 09:50
  • If by default location you mean this key `[HKEY_CLASSES_ROOT\CompressedFolder\shell\Open\Command]`, then we just need create a second command here like `[HKEY_CLASSES_ROOT\CompressedFolder\shell\MyApp\Command]`. The Default value should be the command line path + %1 as the argument. – Knuckle-Dragger Jan 28 '14 at 10:15
  • i can add there. but if user will install winrar or other software then my menu item will be removed. is there any solution by which i can add my menu item permanently to .zip file extension. – kitkat43 Jan 28 '14 at 10:19
  • that could be a good solution but problem is that i dont have admin privilege everytime. – kitkat43 Jan 28 '14 at 10:34
  • @kitkat43: `HKEY_CLASSES_ROOT` is a merged view of `HKCU` and `HKML`, `HKCU` (`HKEY_CURRENT_USER`) doesn't need special permissions. – MSalters Jan 28 '14 at 11:42
  • but when i tried to change registry without admin permission i got exception. – kitkat43 Jan 28 '14 at 11:49

0 Answers0