472,951 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,951 software developers and data experts.

Deployment Project and Windows Service

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 deployment project, i
can install and uninstall the windows service just fine on my own
machine, but after I install it on another machine, the uninstall part
doesnt work right. It looks like it uninstalls it, but what happens is
that it leaves the service in the windows service list and then just
the exe in the install directory (there are a few dependent dlls it
gets rid of just fine).

fyi, my deployment project has the 4 custom actions setup with the
output of the primary object per one of the many webpages i found that
talks about setting up a deployment project for a windows service.

weird huh? isnt that what always happens with programmers. "well it
works on my machine" lol

Oct 2 '07 #1
1 2015

Take a look here:

http://www.eggheadcafe.com/articles/20041204.asp

Don't concentrate on the msmq or "ICommand pattern" stuff.

CHeck out Peter's bat files. install.bat and uninstall.bat

Man, I am so thankful he figured that thing out.

It makes installing / uninstalling services a breeze.

<ki**********@zywave.comwrote in message
news:11**********************@57g2000hsv.googlegro ups.com...
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 deployment project, i
can install and uninstall the windows service just fine on my own
machine, but after I install it on another machine, the uninstall part
doesnt work right. It looks like it uninstalls it, but what happens is
that it leaves the service in the windows service list and then just
the exe in the install directory (there are a few dependent dlls it
gets rid of just fine).

fyi, my deployment project has the 4 custom actions setup with the
output of the primary object per one of the many webpages i found that
talks about setting up a deployment project for a windows service.

weird huh? isnt that what always happens with programmers. "well it
works on my machine" lol

Oct 2 '07 #2

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...
4
by: ochocki | last post by:
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...
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.