Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using WinMerge and would like to change it's context menu title from Compare to &Compare (So I can use the AppsKey, C combination to compare files easily.

Can I do it? Or do I need to re-write the application itself to do it?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

The context menus for WinMerge are dynamic and cannot be changed in the registry - they are defined within the Shell Extension DLL. (it is most likely that most/all applications are like that.

I opened the c:\Program Files\WinMerge\ShellExtensionU.dll file using one of Total Commander's plug-ins (I don't know which). Then navigated to .RT_STRING\1033\7.rc which is the English language text for the context menu. Then I changed it from:

STRINGTABLE
LANGUAGE 9, 1
BEGIN
  100, "ShellExtension"
  101, "WinMerge"
  102, "Open with WinMerge"
  103, "Please select no more than 2 items"
  104, "Compare"
  105, "Compare..."
  106, "Compare To"
  107, "Save this path. Select another path to compare with this path."
  109, "Compare to saved path (%1)"
  110, "Re-select First"
END

To:

STRINGTABLE
LANGUAGE 9, 1
BEGIN
  100, "ShellExtension"
  101, "WinMerge"
  102, "Open with WinMerge"
  103, "Please select no more than 2 items"
  104, "&Compare"
  105, "Compare..."
  106, "&Compare To"
  107, "Save this path. Select another path to compare with this path."
  109, "Compare to saved path (%1)"
  110, "Re-select First"
END

After a re-start, the context menus were updated.

share|improve this answer

The handlers for shell extensions that I have are here. Probably a good place to start.

HKCU\Software\Classes\*\ShellEx\ContextMenuHandlers         

HKCU\Software\Classes\Directory\ShellEx\ContextMenuHandlers     

HKLM\Software\Classes\*\ShellEx\ContextMenuHandlers 

HKLM\Software\Classes\Directory\ShellEx\ContextMenuHandlers         
share|improve this answer
    
Thanks - that answered the 1st part of my question and helped me in my investigation. But the answer was within the application itself :) –  RonK May 30 '11 at 11:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.