예제 #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();
 }
예제 #2
0
파일: Program.cs 프로젝트: liguifa/VMM
 static void Main(string[] args)
 {
     AgentService agentService = new AgentService();
     agentService.Assemblypath = Path.Combine(@"I:\VMM\Agent\Agent.Install\bin\Release\2222", "../");
     agentService.Install();
 }