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 void RemoteCreate() { var authInfo = GetAuthenticationInfo(); WmiService.WithAuthentication(authInfo.WmiUserName, authInfo.WmiPassword); var t = new WinServiceCreateTask(authInfo.MachineName, "DropKicKTestService"); t.ServiceLocation = "C:\\Test\\TestService.exe"; t.StartMode = ServiceStartMode.Automatic; t.UserName = authInfo.ServiceUserName; t.Password = authInfo.ServicePassword; DeploymentResult o = t.VerifyCanRun(); AssertSuccess(o); var result = t.Execute(); Log(result); AssertSuccess(result); }
public override void Context() { _task = new WinServiceCreateTask("localhost", "test"); }