By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,212 Members | 1,505 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,212 IT Pros & Developers. It's quick & easy.

Installer - Passing a Service Name

P: n/a
Hello Guys:

I am not sure if this is the place for this question, but I can't find a
proper place for it. We have a C# application that uses an installer to
install a service. However: we cannot find how to pass a Service Name to
the installer, in the event we want to install multiple services on the same
server.

Would anyone be able to help?

Thanks
Andy
Apr 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
If you use a service installer class derived from
System.Configuration.Install.Installer, this has a .ServiceName property.

Also, the service class itself should have this property, so I see no reason
why this can't be passed either on the command line and picked up like other
args, or even just kept as an appSettings element in the config file.
Hope that helps.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Andy" wrote:
Hello Guys:

I am not sure if this is the place for this question, but I can't find a
proper place for it. We have a C# application that uses an installer to
install a service. However: we cannot find how to pass a Service Name to
the installer, in the event we want to install multiple services on the same
server.

Would anyone be able to help?

Thanks
Andy

Apr 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.