Wednesday, 24 December 2014

Not able to remove the Window service

There are following ways to remove window service :

1. From visual Studio command Prompt:

Just go to Visual studio command prompt from Start Menu.
Then in visual studio command prompt type as below:
     
     >installutil.exe  /u "Here your service directory with it its exe"          press enter.

Example:    >installutil.exe  /u    "c:/programfiles/myservice/service.exe"

2. If you have installed a window service from a installer then you can remove it from add/remove programs in control panel.

3. This is a case which i face so want to share it with you.

  1. Installed a Windows service from installer but i uninstalled it from command prompt. But its files still exist there in the directory where it was installed.
  2. Then the real problem caused.that service got removed from Services but still available in add/remove programs
  3. Then i want not able to install new version of service coz it say this service already exist and neither i can remove it from add/remove programs.
  4. To resolve this just install the service from the directory files using command prompt with install util command then it will be installed and then you can remove it from add/remove section.
            >installutil.exe "c:/programfiles/myservice/service.exe"



No comments:

Post a Comment