Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Anybody worked on install/uninstall windows service?

Anybody worked on install/uninstall windows service?

Scheduled Pinned Locked Moved Windows Forms
question
3 Posts 3 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NanaAM
    wrote on last edited by
    #1

    Look I have a widnows service, which gets installed and uninstalled programmatically. Now I am using advapi32.dll to install and uninstall the service. But when I uninstall the service, It doesnt remove the entry from Services. It removes it only when I close the running application which has called uninstall method. What to do? how can I remove the entry without closing my application? I working on it since loooooooooong time. but :((

    Nana

    K 1 Reply Last reply
    0
    • N NanaAM

      Look I have a widnows service, which gets installed and uninstalled programmatically. Now I am using advapi32.dll to install and uninstall the service. But when I uninstall the service, It doesnt remove the entry from Services. It removes it only when I close the running application which has called uninstall method. What to do? how can I remove the entry without closing my application? I working on it since loooooooooong time. but :((

      Nana

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      I have seen some issues with uninstalling windows services where if you delete the exe before you uninstall it, the service will still show up. So I would uninstall first then delete the exe. Just a guess. Hope that helps. Ben

      S 1 Reply Last reply
      0
      • K kubben

        I have seen some issues with uninstalling windows services where if you delete the exe before you uninstall it, the service will still show up. So I would uninstall first then delete the exe. Just a guess. Hope that helps. Ben

        S Offline
        S Offline
        Scott Dorman
        wrote on last edited by
        #3

        There can also be problems if the Services control panel applet is running when the service is removed. It will sometimes "persist" until a reboot occurs.

        ----------------------------- In just two days, tomorrow will be yesterday.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups