On 25.04.2008 16:06, Doug Philips wrote:
> On Friday, April 25, 2008, at 08:58AM, "Adrian Buehlmann" wrote:
>> What do you think a tool does if it tries to delete a
>> non-existing registry key? Format your harddisk?
> 
> It might decide that the system is in an inconsistent state and rather than 
> risk screwing it up, it could reasonably decline to de-install (or finish 
> de-installing depending on when it checks)...
> 
>> Hopefully not, since the installation of those registry
>> keys could have failed, too.
> 
> ??
> 
>> You are also free to ignore this information about changing
>> the registry and it may indeed not be the right thing
>> for those not being familiar using regedit. That's
>> why I wrote in my post "if you are not afraid of using
>> regedit".
> 
> My point is that it isn't -just- about using regedit.
> it is also about how the target program (TortoiseHG) would react
> to those changes.
> 
>     --Doug

It reacts just fine, as there is no internal dependency
on having the overlay handler *actively* installed as an overly
handler. There is no hidden magic here.

The COM object is still registered, BTW. It's just
no longer called by explorer, because explorer enumerates
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers
and calls all COM objects there, querying them for
the COM interface IShellIconOverlayIdentifier
and calling GetOverlayInfo()
(http://msdn2.microsoft.com/en-us/library/bb761265%28VS.85%29.aspx)

If an overlay handler is not registered at that
registry location, it's *simply* not called.
That's all. Not the slightest magic going on here.


I can furthermore report that I have just successfully
uninstalled TortoiseHG 0.4rc1 *after* having first "hacked" the
registry as I wrote in my OP.

The uninstaller reported "TortoiseHg was successfully removed
from your computer" and I found nothing fishy after that.

Reinstalling TortoiseHG 0.4rc1 after that worked fine
as well -- the overlay icons and the registry keys were again
there, as before my registry "hacking".

--Adrian



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to