Namespace change for PreferencesView.xaml
[pithos-ms-client] / trunk / Pithos.ShellExtensions / ProjectInstaller.cs
1 
2 #region Using directives
3
4 using System.Collections;
5 using System.ComponentModel;
6 using System.Runtime.InteropServices;
7
8 #endregion
9
10
11 namespace Pithos.ShellExtensions
12 {
13     [RunInstaller(true), ComVisible(false)]
14     public partial class ProjectInstaller : System.Configuration.Install.Installer
15     {
16         public ProjectInstaller()
17         {
18             InitializeComponent();
19         }
20
21         public override void Install(IDictionary stateSaver)
22         {
23             base.Install(stateSaver);
24
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);
31         }
32
33         public override void Uninstall(IDictionary savedState)
34         {
35             base.Uninstall(savedState);
36
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);
41         }
42     }
43 }