473,385 Members | 1,752 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,385 software developers and data experts.

Deployment of Windows Service Project

Hi,

I've created a solution with a project of type "Windows Service" and
deployment project for this service that creates installation package.

I want to have more then one copy of this service installed on one
machine. Since it is not possible to have two services with the same
name I faced the problem: how to parametrize installation wizard? I
mean, I would like to be able to modify service name during
installation. Is it possible?

/M
Dec 6 '07 #1
4 3356
On 6 Dec, 15:30, ocho...@gmail.com wrote:
Hi,

I've created a solution with a project of type "Windows Service" and
deployment project for this service that creates installation package.

I want to have more then one copy of this service installed on one
machine. Since it is not possible to have two services with the same
name I faced the problem: how to parametrize installation wizard? I
mean, I would like to be able to modify service name during
installation. Is it possible?

/M
In the projectInstaller class add events
ProjectInstaller_BeforeInstall
and
ProjectInstaller_BeforeUninstall

In there I call a method called ChangeName which simply does:

MyLittleServiceInstaller.ServiceName = m.TheName;
In this case m is a mini dialog. It just pops up and asks for the new
name, but you can do what ever you like. Read it from a file, get it
from a web service, etc.
Dec 6 '07 #2
On 6 Gru, 17:08, DeveloperX <nntp...@operamail.comwrote:
On 6 Dec, 15:30, ocho...@gmail.com wrote:
Hi,
I've created a solution with a project of type "Windows Service" and
deployment project for this service that creates installation package.
I want to have more then one copy of this service installed on one
machine. Since it is not possible to have two services with the same
name I faced the problem: how to parametrize installation wizard? I
mean, I would like to be able to modify service name during
installation. Is it possible?
/M

In the projectInstaller class add events
ProjectInstaller_BeforeInstall
and
ProjectInstaller_BeforeUninstall

In there I call a method called ChangeName which simply does:

MyLittleServiceInstaller.ServiceName = m.TheName;

In this case m is a mini dialog. It just pops up and asks for the new
name, but you can do what ever you like. Read it from a file, get it
from a web service, etc.

There is no projectInstaller class. How can I add it?

/M
Dec 7 '07 #3
On 7 Dec, 07:37, ocho...@gmail.com wrote:
On 6 Gru, 17:08, DeveloperX <nntp...@operamail.comwrote:


On 6 Dec, 15:30, ocho...@gmail.com wrote:
Hi,
I've created a solution with a project of type "Windows Service" and
deployment project for this service that creates installation package.
I want to have more then one copy of this service installed on one
machine. Since it is not possible to have two services with the same
name I faced the problem: how to parametrize installation wizard? I
mean, I would like to be able to modify service name during
installation. Is it possible?
/M
In the projectInstaller class add events
ProjectInstaller_BeforeInstall
and
ProjectInstaller_BeforeUninstall
In there I call a method called ChangeName which simply does:
MyLittleServiceInstaller.ServiceName = m.TheName;
In this case m is a mini dialog. It just pops up and asks for the new
name, but you can do what ever you like. Read it from a file, get it
from a web service, etc.

There is no projectInstaller class. How can I add it?

/M- Hide quoted text -

- Show quoted text -
Here's a link that describes it. Will save me some typing :)

http://www.devx.com/dotnet/Article/20849/1763/page/2
Dec 7 '07 #4
On 7 Gru, 11:56, DeveloperX <nntp...@operamail.comwrote:
On 7 Dec, 07:37, ocho...@gmail.com wrote:
On 6 Gru, 17:08, DeveloperX <nntp...@operamail.comwrote:
On 6 Dec, 15:30, ocho...@gmail.com wrote:
Hi,
I've created a solution with a project of type "Windows Service" and
deployment project for this service that creates installation package.
I want to have more then one copy of this service installed on one
machine. Since it is not possible to have two services with the same
name I faced the problem: how to parametrize installation wizard? I
mean, I would like to be able to modify service name during
installation. Is it possible?
/M
In the projectInstaller class add events
ProjectInstaller_BeforeInstall
and
ProjectInstaller_BeforeUninstall
In there I call a method called ChangeName which simply does:
MyLittleServiceInstaller.ServiceName = m.TheName;
In this case m is a mini dialog. It just pops up and asks for the new
name, but you can do what ever you like. Read it from a file, get it
from a web service, etc.
There is no projectInstaller class. How can I add it?
/M- Hide quoted text -
- Show quoted text -

Here's a link that describes it. Will save me some typing :)

http://www.devx.com/dotnet/Article/20849/1763/page/2
OK, that works, but only partially :(
Looks like it is not even possible to run setup when one instance of
the product (service) is already installed. When I launch it I'm asket
whether to remove or repair the installation.
Is it possible to tell the installer to omit this check? Then I would
be able to specify different installation directory and different
service name.

/M
Dec 7 '07 #5

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

Similar topics

1
by: Wendy Elizabeth | last post by:
Can you give me some suggestions of why the xml web service is not working? I have an xml web service that works in my visual studio. net 1.1 environment. I setup this project up for deployment...
0
by: yawnb | last post by:
I have a windows service written in C++ .NET. I am able to install it fine from the command prompt with "service.exe" -Install. I added a deployment project with a custom action and selected the...
1
by: Wendy Elizabeth | last post by:
Can you give me some suggestions of why the xml web service is not working? I have an xml web service that works in my visual studio. net 1.1 environment. I setup this project up for deployment...
2
by: russ.haley | last post by:
I have created a small windows service in C# that installs using the service installer classes and a deployment project. I have been able to install the service but the uninstallation does not...
1
by: acteon | last post by:
Hello, I made a deployment project to install a web service I made. I had to include a merge module for a Ibm database package. My deployment project is producing a .MSM file in my release...
1
balabaster
by: balabaster | last post by:
Hi, I'm trying to figure out how to install multiple instances of a Windows Service on a single machine using the deployment Setup Project. We have a Windows Service that's configurable through...
6
by: andrewbb | last post by:
I want to deploy a service with a windows app and the setup program must conform to the Vista certification requirements. Can that be done with the standard .net setup project? Assuming cost is...
1
by: kirk.quinbar | last post by:
Have you ever used a .net deployment project to install a windows service? If so, then i ran into an issue recently that maybe you could shed some light on. I am sure I probably did something...
5
by: tshad | last post by:
I have a Windows Service that I am deploying by setting a Deployment project in my solution. The problem I am having is with the app.config file. This where we store our connection string and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.