/// <summary> /// This is called when installer's custom action executes and /// registers the toolbar which is extending a bandobject, as COM server. /// </summary> /// <param name="stateSaver"></param> public override void Uninstall(System.Collections.IDictionary savedState) { base.Uninstall(savedState); OpenImageMenuExt.UnRegisterMenuExt(); RegistrationServices regsrv = new RegistrationServices(); if (!regsrv.UnregisterAssembly(this.GetType().Assembly)) { throw new InstallException("Failed To Unregister for COM"); } }