Results 1 to 3 of 3

Thread: Is Windows Service Installed?

  1. #1

    Thread Starter
    Hyperactive Member gmatteson's Avatar
    Join Date
    Feb 2002
    Location
    Rhode Island, USA
    Posts
    293

    Is Windows Service Installed?

    How can I tell if a windows service is installed in VB.NET?

    i.e. something like

    if service exist then
    blah
    else
    install it
    end if


  2. #2
    Junior Member joan_fl's Avatar
    Join Date
    Aug 2002
    Location
    Tampa, FL
    Posts
    28
    You need to add an "Installer Class" to your service's project. Once added, you also need to add a ServiceProcessInstaller component, and a ServiceInstall component. This will allow you to use the InstallUtil.exe to install your service. You can uninstall with the same utility.

    Hope this helps,

    Joan

  3. #3

    Thread Starter
    Hyperactive Member gmatteson's Avatar
    Join Date
    Feb 2002
    Location
    Rhode Island, USA
    Posts
    293

    thanks

    thanks, i have already used that... i think i didnt explain what i was trying to do.sorry

    when a user clicks on a button, for the code to detect wiether or not a following service is installed on the local machine... i.e....dns client, zero-wireless... thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width