70 |
|
|
71 |
Console.WriteLine("Press any key to continue"); |
Console.WriteLine("Press any key to continue"); |
72 |
Console.ReadKey(); //wait for user input |
Console.ReadKey(); //wait for user input |
73 |
} |
} |
74 |
|
else if (args[0] == "/i" || args[0] == "/u") |
|
if (args[0] == "/i" || args[0] == "/u") |
|
75 |
{ |
{ |
76 |
|
|
77 |
bool undo; |
bool undo; |
85 |
} |
} |
86 |
MyServiceInstaller.DoInstall(undo, new string[] { }); |
MyServiceInstaller.DoInstall(undo, new string[] { }); |
87 |
} |
} |
88 |
|
else |
89 |
|
{ |
90 |
|
Console.WriteLine("DaoMqPumpv2 by THN"); |
91 |
|
Console.WriteLine("Options:"); |
92 |
|
Console.WriteLine(" --debug start a single run debug session"); |
93 |
|
Console.WriteLine(" /i install as a service"); |
94 |
|
Console.WriteLine(" /u un-install service"); |
95 |
|
} |
96 |
|
|
97 |
} |
} |
98 |
else |
else |