I have an IE plugin written in C#. In any moment the user will run an uninstaller or updater to rewrite or delete the plugin’s file.
To unregister the plugin on IE I have to run regasm /u for my file, but occurs that the file stills locked (loaded) and I cannot delete it until I reboot the machine.
Actually, the explorer process is locking the file. If I kill the explorer process I will be able to delete the file.
Any idea about how I could delete or rewrite the file without killing explorer’s process or rebooting the machine?
Thanks
When you register your IE plugin, put a REG_DWORD set to 1 with Name = ‘NoExplorer’ in the BHO key (assuming it’s a BHO extension), e.g. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects{your guid}
that tells Explorer to only load your extension from within IE, not within Explorer.exe also.