We have an application with activex exe and a com dll. After installing we get an object created in DCOM config.
If we try to delete this object from DCOM config, it goes off till we again reopen it. Want to know if there's any procedure to delete this object completely from DCOM and its registries.
No idea why this would be tagged VB.Net, but...
You can remove most of the server's registration entries by running the EXE with a command line switch as in:
MyAx.EXE /unregserver
However this leaves a system-synthesized entry under HKCR\AppID
after first use.
As far as I know you must manually remove this since the compiled program has no idea the key was ever created (i.e. it did not do this itself).
Search for the Application ID in the registry and delete all keys that contain a reference to it. Apologies for replying to an old post, but I just had to do this today to clean up a corrupted Altiris Agent uninstall.
来源:https://stackoverflow.com/questions/17487609/need-to-remove-an-object-from-dcom-config-dcomcnfg