Deployment Project and Windows Service

Deployment Project and Windows Service

am 02.10.2007 21:09:20 von Kirk Quinbar

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

Re: Deployment Project and Windows Service

am 02.10.2007 21:25:20 von sloan

Please do not multi post.

You have the same post in the csharp newsgroup.




wrote in message
news:1191352160.459119.266870@57g2000hsv.googlegroups.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
>