Re: Same win service with different display names and description

Eddie Lascu <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Organization IBI Group
Message-ID <[email protected]>
Well, guess what? I already have that class library because I also needed to
be able to run the application as a stand-alone console app. So I guess this
may be one solution.

Thanks for your suggestion,
Eddie




-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[email protected]] On Behalf Of David Thompson
Sent: Monday, November 24, 2008 10:33 AM
To: [email protected]
Subject: Re: [ADVANCED-DOTNET] Same win service with different display names
and description

Eddie,

I'd separate the service into two projects - a class library with the
majority of the code and a service that is sort of a shell around the class
library. Then I'd create the other services as shells around the class
library. That gets you the configurability as well as reusing the same code
in all the services.

Regards,
David

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[email protected]] On Behalf Of Eddie Lascu
Sent: Monday, November 24, 2008 7:17 AM
To: [email protected]
Subject: [ADVANCED-DOTNET] Same win service with different display names and
description

Hi there,
 
I have one windows service that I need to deploy 4 times on a production
server. Each service will control a different interface. The interfaces are
100% similar so that is why it made sense to develop only one service.
Now,
that I need to deploy them, I also need to instantiate them with different
display names and descriptions. The display name and the description are
properties of the serviceInstaller object. Is there a way to change those
two properties other than changing them in my development environment and
then recompile the whole service? Is there some kind of configuration file
for the service itself where these properties would be stored and then read
by the service during the installation phase?
 
Thanks for your help,
Eddie

===================================
View archives and manage your subscription(s) at
http://peach.ease.lsoft.com/archives

===================================
View archives and manage your subscription(s) at
http://peach.ease.lsoft.com/archives

===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.