views:

340

answers:

3

TortoiseHG's context menu entries totally mess up Windows 7 explorer's context menu's appearance, and I can get by fine with the hg command line tools. However Tortoise Overlay icons are must-have for me.

How can I disable TortoiseHg's context menu commands but still have the Tortoise Overlay icons appear in hg repository folders?

+1  A: 

You need to remove following Windows registry keys using "regedit.exe" tool. Before removing these, please create backup of registry. And note that I cannot guarantee if you get any problem.

HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\InternetShortcut\shellex\ContextMenuHandlers\TortoiseHgCMenu
HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\TortoiseHgCMenu
kuy
didn't work for me :(
Imran
Did you restart Windows after removing?
kuy
A: 

Try this command:

regsvr32 /u "C:\\Program Files\\TortoiseHg\\tortoisehg.dll"

To re-enable shell extension:

regsvr32 "C:\\Program Files\\TortoiseHg\\tortoisehg.dll"
kuy
This would totally disable the shell extension, which I don't want (I only want to get rid of the context menu entries)
Imran
+2  A: 

I had the same problem, but it appears to be fixed in the latest TortoiseHg - if you still have the issue, try upgrading.

Blorgbeard
+1, this was issue 466 http://bitbucket.org/tortoisehg/stable/issue/466/context-menu-changes-its-appearance-after-installing-tortoisehg and was fixed in 0.9.1
SteveL