Jump to content

Add custom entries to explorer condext menu...


Recommended Posts

i'm trying to add custom menu items to explorer context menu for some arc-file-extentions, but it not working (in XP)

Windows Registry Editor Version 5.00

;cascading context menu - use empty lines between registry items
;separator before: "CommandFlags"=dword:00000020
;SubCommands contains keys to be found in the registry - should match

[HKEY_CLASSES_ROOT\.zip\shell\ArcRePack cascade menu]
"MUIVerb"="Arc Re-Pack to..."
"Icon"="D:\\Program\\ShellMenu\\ArcRePack.exe"
"SubCommands"="ArcRePack1;ArcRePack2;ArcRePack3"

[HKEY_CLASSES_ROOT\.lha\shell\ArcRePack cascade menu]
"MUIVerb"="Arc Re-Pack to..."
"Icon"="D:\\Program\\ShellMenu\\ArcRePack.exe"
"SubCommands"="ArcRePack1;ArcRePack2;ArcRePack3"

[HKEY_CLASSES_ROOT\.lzh\shell\ArcRePack cascade menu]
"MUIVerb"="Arc Re-Pack to..."
"Icon"="D:\\Program\\ShellMenu\\ArcRePack.exe"
"SubCommands"="ArcRePack1;ArcRePack2;ArcRePack3"

[HKEY_CLASSES_ROOT\.rar\shell\ArcRePack cascade menu]
"MUIVerb"="Arc Re-Pack to..."
"Icon"="D:\\Program\\ShellMenu\\ArcRePack.exe"
"SubCommands"="ArcRePack1;ArcRePack2;ArcRePack3"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ArcRePack1]
@=""
"MUIVerb"="RePack AsIs"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ArcRePack1\command]
@="\"REPACK_STATUS=ASIS\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ArcRePack2]
@=""
"MUIVerb"="RePack to Compact"
"CommandFlags"=dword:00000020

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ArcRePack2\command]
@="\"REPACK_STATUS=COMPACT\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ArcRePack3]
@=""
"MUIVerb"="RePack to Standart"
"CommandFlags"=dword:00000020

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\ArcRePack3\command]
@="\"REPACK_STATUS=STANDART\" \"%1\""

is there a simple way to do it in XP?

Hard way - it would be to create custom Creating Context Menu Handlers/shell extension handler. But cannot find any good examples...

 

Link to post
Share on other sites

I no longer have XP, but I did play with adding context menus a long time ago. I don't think there is a simple way to do it. I played with regedit, as you are. From what I remember, it did not take effect immediately. I had to reboot (or kill explorer and restart it). I did wonder how software installers could add in menu items and they show up immediately. You might try Inno Setup or Nullsoft software installer to create them for you (if you package your software in an installer).

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...