#region Using directives using System.Collections; using System.ComponentModel; using System.Runtime.InteropServices; #endregion namespace Pithos.ShellExtensions { [RunInstaller(true), ComVisible(false)] public partial class ProjectInstaller : System.Configuration.Install.Installer { public ProjectInstaller() { InitializeComponent(); } public override void Install(IDictionary stateSaver) { base.Install(stateSaver); // Call RegistrationServices.RegisterAssembly to register the classes in // the current managed assembly to enable creation from COM. RegistrationServices regService = new RegistrationServices(); regService.RegisterAssembly( this.GetType().Assembly, AssemblyRegistrationFlags.SetCodeBase); } public override void Uninstall(IDictionary savedState) { base.Uninstall(savedState); // Call RegistrationServices.UnregisterAssembly to unregister the classes // in the current managed assembly. RegistrationServices regService = new RegistrationServices(); regService.UnregisterAssembly(this.GetType().Assembly); } } }