11 |
|
|
12 |
[System.ComponentModel.DesignerCategory("Code")] |
[System.ComponentModel.DesignerCategory("Code")] |
13 |
[RunInstaller(true)] |
[RunInstaller(true)] |
14 |
public sealed class PumpServiceInstallerProcess : ServiceProcessInstaller |
public sealed class FilterServiceInstallerProcess : ServiceProcessInstaller |
15 |
{ |
{ |
16 |
public PumpServiceInstallerProcess() |
public FilterServiceInstallerProcess() |
17 |
{ |
{ |
18 |
this.Account = ServiceAccount.LocalSystem; |
this.Account = ServiceAccount.LocalSystem; |
19 |
} |
} |
23 |
{ |
{ |
24 |
public MyServiceInstaller() |
public MyServiceInstaller() |
25 |
{ |
{ |
26 |
this.Description = "DAOs multi-transport MQ<->MySQL data pumpe."; |
this.Description = "DAOs MQ Filter Transport"; |
27 |
this.DisplayName = "DAO MQ Pump v2"; |
this.DisplayName = "DAO MQFilter"; |
28 |
this.ServiceName = "DaoMqPump2"; |
this.ServiceName = "DaoMqFilter"; |
29 |
this.StartType = System.ServiceProcess.ServiceStartMode.Manual; |
this.StartType = System.ServiceProcess.ServiceStartMode.Manual; |
30 |
} |
} |
31 |
|
|
36 |
{ |
{ |
37 |
Console.WriteLine(undo ? "uninstalling" : "installing"); |
Console.WriteLine(undo ? "uninstalling" : "installing"); |
38 |
|
|
39 |
using (AssemblyInstaller inst = new AssemblyInstaller(typeof(DaoMqPump2.MainProgram).Assembly, args)) |
using (AssemblyInstaller inst = new AssemblyInstaller(typeof(FilterMainProgram).Assembly, args)) |
40 |
{ |
{ |
41 |
IDictionary state = new Hashtable(); |
IDictionary state = new Hashtable(); |
42 |
inst.UseNewContext = true; |
inst.UseNewContext = true; |