Hi,
I’m using FinalBuilder 6.3 and my build project starts/stops windows services. I’d like to expand the scope of the project to allow it to be more portable and scalable by getting it to install the services as well. Is there a recommended set of steps for detecting Windows Services are installed? I can remotely execute the process to do the install but was seeing if there was a nice way to check for service existence?
Thanks,
Sam
Sorry forgot to add this - the source and target machines are Win2k8 R2 x64. FB version is 6.3.0.2253.
Hi Sam,
I’ve never used FB6 but FB7 has the PSService action. Does version 6 have this as well?
The action wraps the psservice.exe from SysInternals.
Thanks,
Dave
Hi All,
With detecting if a service is present on a machine. Running a "net stop " will only work if the service is installed. If it fails with an error message of “the service name is invalid” (I believe there is a specific error code for this as well) then you can assume the service is not installed. Another way is to use PsTools psservice command.
The best way is to use the FinalBuilder 7 PsService action. We have done all the hard work for you.
Thank you. Will investigate these options.