/// <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 Install(System.Collections.IDictionary stateSaver) { base.Install(stateSaver); OpenImageMenuExt.RegisterMenuExt(); RegistrationServices regsrv = new RegistrationServices(); if (!regsrv.RegisterAssembly(this.GetType().Assembly, AssemblyRegistrationFlags.SetCodeBase)) { throw new InstallException("Failed To Register for COM"); } }