Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,


I have two windows services with similar functionality but there are slight difference is there in both of them.

i have installed the first one and when i try to install the second one, the first one is getting deleted....
and the services names are different, still i am not able to install the both of them.

Regards,
Posted
Comments
Herman<T>.Instance 12-Aug-11 3:10am    
show the install scripts
Reiss 12-Aug-11 3:26am    
title doesn't reflect your problem

1 solution

You want to change the ServiceName in two place.

1. In you Service Class
It will look like this.ServiceName = "MyNewService1";

2. In your Installer Class. ServiceName will be available inside the "InitializeComponent" method.
It will look like "this.serviceInstaller1.ServiceName = "MyNewService1";

It will work fine.


Regards,
Senthil S
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900