示例#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();
 }