473,811 Members | 3,220 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3376
On 6 Dec, 15:30, ocho...@gmail.c om 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 projectInstalle r class add events
ProjectInstalle r_BeforeInstall
and
ProjectInstalle r_BeforeUninsta ll

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

MyLittleService Installer.Servi ceName = 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...@operam ail.comwrote:
On 6 Dec, 15:30, ocho...@gmail.c om 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 projectInstalle r class add events
ProjectInstalle r_BeforeInstall
and
ProjectInstalle r_BeforeUninsta ll

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

MyLittleService Installer.Servi ceName = 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 projectInstalle r class. How can I add it?

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


On 6 Dec, 15:30, ocho...@gmail.c om 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 projectInstalle r class add events
ProjectInstalle r_BeforeInstall
and
ProjectInstalle r_BeforeUninsta ll
In there I call a method called ChangeName which simply does:
MyLittleService Installer.Servi ceName = 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 projectInstalle r 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...@operam ail.comwrote:
On 7 Dec, 07:37, ocho...@gmail.c om wrote:
On 6 Gru, 17:08, DeveloperX <nntp...@operam ail.comwrote:
On 6 Dec, 15:30, ocho...@gmail.c om 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 projectInstalle r class add events
ProjectInstalle r_BeforeInstall
and
ProjectInstalle r_BeforeUninsta ll
In there I call a method called ChangeName which simply does:
MyLittleService Installer.Servi ceName = 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 projectInstalle r 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
2738
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 doing the following steps: 1. add a web setup project called "testaddr". 2. in file system window, select Web Application folder. 3. in the left pane of the file system window, right-click web application, point to add, and then click output...
0
3353
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 primary output of the service. When I build and run the deployment project I get the error System.IO.FileLoadException: unverifiable image service.exe could not be run. Any ideas on why this happens? I have searched the web with no luck. ...
1
3476
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 doing the following steps: 1. add a web setup project called "testaddr". 2. in file system window, select Web Application folder. 3. in the left pane of the file system window, right-click web application, point to add, and then click output...
2
1801
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 work. The files are deleted from the application directory but the service is not being unregistered. The instructions I found did not indicate any code changes were necessary, but I have found reference on Google to changing the CanShutdown...
1
1497
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 directory instead of a .MSI file that I can use to install my web service. How do I change the setup so that it produces a .msi for me ?
1
1579
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 the app.config file so that the service can be configured to do different things when it's fired up. We have a number of different configurations that aren't compatible with each other and consequently need multiple instances of this service installed...
6
4072
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 an issue, what else is available?
1
2552
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 wrong, but I am experiencing something weird and am not sure if it has something to do with the way the WindowServiceInstaller class was created or if i did something wrong in my deployment project. Basically what happens is that after I build the...
5
2163
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 folder locations. My development app.config is different from my clients. When I send him an msi file, I have to either add the clients app.config file into my project in 2 locations (as I am running as an exe as well as a
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
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
10392
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10136
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
6893
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
5693
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4341
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
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3020
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.