multiple install of windows services...

  • Thread starter Thread starter Jay Warmack
  • Start date Start date
J

Jay Warmack

Is it possible to install multiple instances of windows service application
on a single server? I have been searching for any option I can find in the
process installer class and in the Install setup project etc. to find some
way to allow my service application to be installed more than once. So far
I can find no way to install the service more than once (i.e. into a
seperate app domain). Any suggestions on this? Also is there a better
newsgroup that might have this answer?

Thanks,

Jay Warmack
 
I think to do this you need to have individual "service names" (ie. each
call to CreateService() must have a different value for lpServiceName).
Hard to say how you can do this in your install program without knowing
which program you're using. However, the way I've done it in the past is to
register the service by running the exe and passing a particular command
line parameter. Either the parameter will imply what the service name will
be, or the service will iterate through the existing services to find a
"free" name (ie. if MyService1 and MyService2 are already installed, the
application will install as MyService 3).

You might also try microsoft.public.win32.programmer.kernel.


{L}
 
Back
Top