469,270 Members | 1,831 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

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 1899

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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Wendy Elizabeth | last post: by
reply views Thread by yawnb | last post: by
1 post views Thread by Wendy Elizabeth | last post: by
6 posts views Thread by andrewbb | last post: by
1 post views Thread by kirk.quinbar | last post: by
4 posts views Thread by ochocki | last post: by
5 posts views Thread by tshad | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.