Beispiel #1
0
 protected override void OnAfterInstall(IDictionary savedState)
 {
     base.OnAfterInstall(savedState);
     AgentConfig.Create(Context.Parameters["assemblypath"], "127.0.0.1", "5712", "123456");
     AgentService agentService = new AgentService();
     agentService.Assemblypath = Path.Combine(Context.Parameters["assemblypath"], "../");
     agentService.Install();
 }
Beispiel #2
0
 static void Main(string[] args)
 {
     AgentService agentService = new AgentService();
     agentService.Assemblypath = Path.Combine(@"I:\VMM\Agent\Agent.Install\bin\Release\2222", "../");
     agentService.Install();
 }