multiple install of windows services...

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
 
L

LiquidJ

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}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top