473,396 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Multiple Instances of Windows Services

Is there any way to install multiple instances of the same windows service
designed with VS.NET 2003? I tried copying the binaries into a separate
folder and then copying registry entries for the original service under a
new name but the SCM complains that the executable does not have this
service implemented.
Please note that I need to have distinct instances of executables installed
not merely multiple windows services defined within the same exe. - I know
how to do that.

The problem is that I do not know at compile time how many instances of the
service is going to be installed. Also each instance will have a distict
config file with distinct settings. Because config files are bound to the
exe I could not have multiple config files used by the same exe's services
in that scenario.

Thanks!
Vlad
Jul 21 '05 #1
1 5950
"Vlad" <RE***************@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Is there any way to install multiple instances of the same windows service
designed with VS.NET 2003? I tried copying the binaries into a separate
folder and then copying registry entries for the original service under a
new name but the SCM complains that the executable does not have this
service implemented.
Please note that I need to have distinct instances of executables installed not merely multiple windows services defined within the same exe. - I know
how to do that.

The problem is that I do not know at compile time how many instances of the service is going to be installed. Also each instance will have a distict
config file with distinct settings. Because config files are bound to the
exe I could not have multiple config files used by the same exe's services
in that scenario.


Yes, you can do this, but it's a nasty hack.

Whatever you want to be different between the instances has to be configured
from a config file. This includes the ServiceName and DisplayName. You'll
probably have other things which need to vary by instance, like port
numbers. Set those to come from the config file as well.

Create separate directories for each instance. Copy all necessary binaries
there, as well as the <service>.exe.config file.

Now, the problem is that if you run installutil on each of these instances,
they will not install. installutil will know nothing about your
<service>.exe.config. In fact, like all other programs, installutil will
only know about installutil.exe.config.

So, you have to copy <service>.exe.config to be installutil.exe.config.

Also, since installutil will only see installutil.exe.config in the
directory it's running from, you'll have to copy installutil.exe to the
instance directory, then run that particular installutil.exe.
--
John Saunders
johnwsaundersiii at hotmail
Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: MW | last post by:
Hi all, I have written a windows service application and setup project to install/deinstall my service. There is a requirement to run one more instance of the same service with different set...
0
by: Ricardo | last post by:
Hi. I've built a windows service and I need to make an installation program that creates multiple instances of this service. Being more specific, what I need is to run the installation, ask the...
11
by: Mike | last post by:
Looking to find any information on how to properly configure multiple instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking for information on how the multiple instance settings...
1
by: Vlad | last post by:
Is there any way to install multiple instances of the same windows service designed with VS.NET 2003? I tried copying the binaries into a separate folder and then copying registry entries for the...
10
by: John | last post by:
I currently have a Windows Service that runs Transactions that are very Processor/Memory Intensive. I have a requirement to deploy multiple instances of the Web service on the Same server. Each...
1
by: sunil | last post by:
Hello All. I have written a program as an exe that performs some kind of order processing. The program is first configured and then started manually. I have have multiple instances of this...
0
by: Sunil Pandita | last post by:
Hi all, I have created a windows service that is working well. Now i want to create the multiple instances of this service on the same box. How could it be possible?. One way that I thought...
7
by: Matt | last post by:
I have approximately 5 instances on my test server that are identical to my prod server. On the prod server, when I look at the services file, there is a single entry per instance and everything...
0
by: jigsmshah | last post by:
I have a windows service developed in C#.I am reading the connection string from an ini file and also i am reading 3 image file from the bin directory. now the new requirement is that there will be...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.