Deployment Project and Windows Service - CSharp

This is a discussion on Deployment Project and Windows Service - CSharp ; 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 ...

+ Reply to Thread
Results 1 to 2 of 2

Deployment Project and Windows Service

  1. Default 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


  2. Default Re: Deployment Project and Windows Service


    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.



    <kirk.quinbar@zywave.com> wrote in message
    news:1191352117.097074.262670@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
    >




+ Reply to Thread

Similar Threads

  1. Deployment of Windows Service Project
    By Application Development in forum CSharp
    Replies: 4
    Last Post: 12-07-2007, 11:56 AM
  2. Windows Setup Project - Installing an .exe with a service
    By Application Development in forum CSharp
    Replies: 1
    Last Post: 11-02-2007, 12:35 PM
  3. Deployment Project and Windows Service
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 10-02-2007, 02:25 PM
  4. Replies: 0
    Last Post: 09-07-2007, 09:53 AM
  5. Web service deployment project is making a .msm instead of .msi
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 07-13-2006, 01:24 PM