Friday, 4 August 2017

arcobjects - How do you remove a custom extension?


For example: you run the DesktopExtensionCS2010 sample that comes with the SDK, having it open arcCat at startup.


Now whenever I open ArcCat the extensions are there. I can uncheck them but I want to get rid of them (without hacking the registry).



Answer



If you are using ArcGIS 10.0, use the ESRIRegAsm Utility, for example:


"C:\Program Files\Common Files\ArcGIS\bin\ESRIRegAsm.exe" /p:desktop /u "C:\Test\MyAssembly.dll"


For 9.3.x and earlier you can use regasm.exe like so:


C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm.exe "C:\Test\MyAssembly.dll" /unregister

You would enter one of those commands in the Windows command prompt (Start->Programs->Accessories->Command Prompt).


No comments:

Post a Comment