Re: Removing multiple versions of a COM object from the registry

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



In article <1170404037.640632.20700@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
bg_ie@xxxxxxxxx says...
echo * Unregister %target% with v2.0.50727
regasm.exe /u %target%

// Delete mydll.dll and compy new dll to C:

echo * Register assmebly
regasm.exe /tlb /codebase /s C:\mydll.dll

echo * Register DCOM security
@%windir%\REGEDIT.EXE /S %sourceDir%\mydll.reg

If you use the /tlb switch when registering an assembly, you must also
use it when unregistering or else the type library will remain
registered (although the actual COM object -- prog ids and GUID's --
will be removed).

--
Patrick Steele
http://weblogs.asp.net/psteele
.



Relevant Pages