urgent ( about window services)
-
hi all, I have an application, where there is a service manager which is responsible for controlling three services. The three services (which r controlled by service manager) have exe files. I have installed these three services using the installutil.exe . Now, i cannot install the service manager in the same way as I installed the three services because service installer is not present for the service manager application. What i have to do now, Should i add installer to the service manager application and install it using installutil.exe....... if, so , how are the other three services controlled by this application.......
-
hi all, I have an application, where there is a service manager which is responsible for controlling three services. The three services (which r controlled by service manager) have exe files. I have installed these three services using the installutil.exe . Now, i cannot install the service manager in the same way as I installed the three services because service installer is not present for the service manager application. What i have to do now, Should i add installer to the service manager application and install it using installutil.exe....... if, so , how are the other three services controlled by this application.......
I'm not sure I fully understand your question. Is the service manager project, itself, a service? If it is, then yes, add an installer project for the service project, compile it and install it. If, however, the service manager project is just a standard executable or a web project (doubtful), then it should be possible to compile and execute the manager from the windows desktop. As to how the other three services are controlled by the manager, you would need to provice more implementation details about the service manager project for me to answer that question.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
-
hi all, I have an application, where there is a service manager which is responsible for controlling three services. The three services (which r controlled by service manager) have exe files. I have installed these three services using the installutil.exe . Now, i cannot install the service manager in the same way as I installed the three services because service installer is not present for the service manager application. What i have to do now, Should i add installer to the service manager application and install it using installutil.exe....... if, so , how are the other three services controlled by this application.......
Just copy it to a directory. If the three services are installed the service manager application using the
ServiceController
doesn't need to be in the same directory as the services. TheServiceController
(which encapsulates the service control manager (SCM) native APIs) works with service names and doesn't care about the path once the service is registered (and, BTW, all services are executables). The service manager application will need to know the names of the services only. Where you put it on the local machine (and you can even control services remotely if you have the necessary privileges) doesn't matter. Read Deploying Applications[^] in the .NET Framework SDK for more information. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]