2 #region Using directives
4 using System.Collections;
5 using System.ComponentModel;
6 using System.Runtime.InteropServices;
11 namespace Pithos.ShellExtensions
13 [RunInstaller(true), ComVisible(false)]
14 public partial class ProjectInstaller : System.Configuration.Install.Installer
16 public ProjectInstaller()
18 InitializeComponent();
21 public override void Install(IDictionary stateSaver)
23 base.Install(stateSaver);
25 // Call RegistrationServices.RegisterAssembly to register the classes in
26 // the current managed assembly to enable creation from COM.
27 RegistrationServices regService = new RegistrationServices();
28 regService.RegisterAssembly(
29 this.GetType().Assembly,
30 AssemblyRegistrationFlags.SetCodeBase);
33 public override void Uninstall(IDictionary savedState)
35 base.Uninstall(savedState);
37 // Call RegistrationServices.UnregisterAssembly to unregister the classes
38 // in the current managed assembly.
39 RegistrationServices regService = new RegistrationServices();
40 regService.UnregisterAssembly(this.GetType().Assembly);