473,804 Members | 3,049 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installer - Passing a Service Name

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
1 1581
If you use a service installer class derived from
System.Configur ation.Install.I nstaller, 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
14467
by: krisk | last post by:
Could not find ansewr: in ProjectInstaller, RunInstallerAttribute: ..... this.serviceInstaller1.ServiceName = MyServiceName; in the code: public class MyService : System.ServiceProcess.ServiceBase { string MyServiceName = "configSendmailA";
8
503
by: D Busby | last post by:
List I've made a .NET windows service in C++, then I added an installer to the solution. I added the 'Project Output' from my .NET service as a package for the installer to install however it does not install my program as a service on the client machine. Is there something special I need to do? Shouldn't the 'Project Output' show the installer that I have made a service and then install the thing properly?
7
3689
by: sidd | last post by:
Hi All, i have some doubts on .net windows services.. please see if some one could help me understand this.. 1)is it possible to install a windows service which does not have a installer added to it, using installutil.exe OR is it must to have an installer to the service project to be able to
1
8482
by: Craig | last post by:
I have added a 'Textboxes (A)' to my UI installer project along with a custom action to pass the value back to a class I've written to override the void Install function. As long as the text is very simple everything is working just fine. I've tested it by writing the string out to a text file to test it. However, the trouble comes in when I use the textbox for what I really intended, a ADO.Net Connection String. The textbox is to...
8
7220
by: vtxr1300 | last post by:
I've followed 2 very similar tutorials on creating a windows service and an installer. But, after successfully compiling it, I try to do the InstallUtil command, but I get a badimageformatexception. I tried to do some searching on that exception, but all I could find was a small blurb on MSs site about C++ which I'm not using. Can anyone see a problem in this code? Thanks. using System; using System.Collections.Generic; using...
5
3472
by: Simon Verona | last post by:
I have an installer project for my VB.net application which as a custom action runs a silent installation of a third party software product. This however, generates an error if the application is already installed. I therefore want to check if the application is already installed before launching the setup.exe to install it. I know I use the "condition" property on the custom action - but what exactly do I put in as a condition if I...
3
8953
by: david | last post by:
Greetings, I'm doing some modifications of an existing Visual Studio .NET 2003 C# project that is to be deployed as a windows service. The solution includes a project that builds an MSI file. Over the month I've been working on the project, I've built the MSI file many times. Sometimes it runs fine and I have a service that can be started and stopped. Other times, the MSI file starts up, goes through several screens and then reports...
0
1014
by: Carona | last post by:
Hi, I'm using visual basic 2005 to create a service. I'm at the point where its all working nicely but I want to add the version number thats displayed in My Project\Publish page to both my Service Name but also to the name of msi when it's created. Within the Installer class I have tried using these two lines of code with the same result: ServiceInstaller1.ServiceName &= " v" & My.Application.Info.Version.ToString and...
0
2246
by: mailtosmita | last post by:
Hi All, I have made a windows service known as polling service which will be using wse3policyCache.config file.The windows service repeatedly calls a method of an existing webservice and in order to call this method its necessary to define wse cache policy.Well everything is working fine except when I am creating installer for the service it doesnt include this wse3policyCache.config.I have to manually put the file in the location where I am...
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10562
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10070
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5508
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4282
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.