public void RemoteCreate() { var t = new WinServiceCreateTask("SrvTestWeb01", "FHLBank.Cue"); t.ServiceLocation = "E:\\FHLBWinSvc\\Cue\\FHLBank.Cue.Host.exe"; t.StartMode = ServiceStartMode.Automatic; DeploymentResult o = t.VerifyCanRun(); t.Execute(); }
public override void Context() { _task = new WinServiceCreateTask("localhost", "test"); }